From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 34873@debbugs.gnu.org, lg.zevlg@gmail.com
Subject: bug#34873: 27.0.50; Creating unibyte string in emacs modules
Date: Tue, 07 May 2019 17:55:56 +0100 [thread overview]
Message-ID: <87o94e2ogz.fsf@tcd.ie> (raw)
In-Reply-To: <83muluyet7.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 Mar 2019 18:17:08 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: lg.zevlg@gmail.com
>> Date: Sat, 16 Mar 2019 16:28:05 +0100
>> Cc: 34873@debbugs.gnu.org
>>
>> wand-mode does many trickery on images in very fast fasion, and it needs
>> method to display previews/results in Emacs buffer. Result of image
>> manipulation is raw rgb(a) data that seats in user-ptr available from
>> imagemagick without any copying. I want `create-image’ with :format
>> ‘image/x-rgb to accept this user-ptr as data to make image creation fast
>>
>> Method proposed by Stefan with make_string/encode-coding-string works, but its
>> speed is far from being usable on big images. There is no method just to use
>> data as-is to make things fast
>
> I'd prefer to provide a way to use user-ptr objects for this purpose,
> rather than allow unibyte strings to be created by modules. The
> latter is a slippery slope which I think we should rather avoid.
>
> Can you propose a patch that uses user-ptr instead?
Sorry if this is a dumb question, but would the functions
unibyte-string, string-to-unibyte, string-as-unibyte et al. be of any
use here?
--
Basil
next prev parent reply other threads:[~2019-05-07 16:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-15 20:52 bug#34873: 27.0.50; Creating unibyte string in emacs modules Evgeny Zajcev
2019-03-16 7:30 ` Eli Zaretskii
2019-03-16 10:32 ` lg.zevlg
2019-03-16 12:20 ` Eli Zaretskii
2019-03-16 15:28 ` lg.zevlg
2019-03-16 16:17 ` Eli Zaretskii
2019-05-07 16:55 ` Basil L. Contovounesios [this message]
2019-05-07 18:33 ` Eli Zaretskii
2019-05-07 19:24 ` Basil L. Contovounesios
2019-05-07 19:48 ` Eli Zaretskii
2020-08-26 10:43 ` Lars Ingebrigtsen
2020-08-26 10:52 ` Eli Zaretskii
2020-08-27 13:04 ` Lars Ingebrigtsen
2020-08-27 13:40 ` Eli Zaretskii
2020-08-27 14:33 ` Noam Postavsky
2020-08-27 16:57 ` Eli Zaretskii
2020-08-27 17:13 ` Noam Postavsky
2020-08-27 17:18 ` Eli Zaretskii
2020-10-13 4:52 ` Lars Ingebrigtsen
2020-10-13 14:31 ` Philipp Stephani
2020-10-14 3:59 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o94e2ogz.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=34873@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=lg.zevlg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).