bkovitz
2018-8-27 19:06:11

@bkovitz has joined the channel


gfb
2018-8-27 22:56:38

Reading image snips takes on the order of seconds for non-trivial images, which is very noticeable for more than a few snips. The bottleneck appears to be in editor-stream-in%’s get-unterminated-bytes. Before I poke around in there, does anyone have some experience to inform attempts to speed that up: approaches that wouldn’t be accepted into the distro (e.g. sacrificing human-readable line lengths in the wxme format?) are okay.


plotnus
2018-8-27 23:04:24

What is the #% for in the following code snippet #:datum-literals (#%negate abs) It’s from a define-syntax-class


gfb
2018-8-27 23:19:02

@plotnus short answer: it’s just part of the name #%negate, just as -, ?, %, / are parts of names like is-a?, object%, and for/fold. Longer answer is about when people tend to name things with #% at the front, and the short answer to that is for “core” or “meta” forms.


samth
2018-8-28 00:52:28

@gfb so pasting an image in DrRacket and saving it, and then reopening it is very slow?


gfb
2018-8-28 00:52:39

yes


gfb
2018-8-28 03:01:02

With a fresh install after moving aside the preference file, it doesn’t seem as bad, although I don’t see why doing that would matter. Turning off background expansion might be helping while editing files with images. Where there’s a serious enough delay is when using 2htdp/image produces mrlib/image-core snips, which appear to be an order of magnitude larger than the original (non-racket) image file. When profiling DrRacket those snips didn’t seem to be the main problem, because more time was spent reading, but it turns out that for those snips there’s more to read.