Re: [racket-users] bitmap% performance

2020-04-23 Thread Robby Findler
On Thu, Apr 23, 2020 at 1:14 PM 'racket' via users-redirect wrote: > > > Thanks! For the first task I think you probably have to use the raw > > bitmap% object (since I guess you're using `read-bitmap`). > > Hi Robby, I don’t understand how to read a jpeg into a platform-bitmap. > Probably I'm

Re: [racket-users] bitmap% performance

2020-04-23 Thread 'racket' via users-redirect
> Thanks! For the first task I think you probably have to use the raw > bitmap% object (since I guess you're using `read-bitmap`).  Hi Robby, I don’t understand how to read a jpeg into a platform-bitmap. Probably I'm missing something in the documentation…   > For the second, I guess you are

Re: [racket-users] bitmap% performance

2020-04-23 Thread 'racket' via users-redirect
Hi Sam, trying your code I get back the following error: load-file in bitmap%: not available in a canvas-compatible bitmap: (object:quartz-bitmap% ...) The error I get is expected according to the load-file documentation: "Loads a bitmap from a file format that read from in, unless the bitmap

Re: [racket-users] bitmap% performance

2020-04-23 Thread Robby Findler
Thanks! For the first task I think you probably have to use the raw bitmap% object (since I guess you're using `read-bitmap`). I'm not sure if there could be some improvement internally so that screen bitmaps were used to read in the jpegs. Absent an improvement at that level, I guess I'd just try

Re: [racket-users] bitmap% performance

2020-04-23 Thread 'racket' via users-redirect
Hi Robby, thanks for your reply. What are you using the bitmap for, exactly? Just to resize the bitmaps? Or as a backing store for drawing into the canvas? Something else? Both of them.  * I have more than 10K photos in 4000x3000 format that I’d like to download from a webdav server, read exif

Re: [racket-users] bitmap% performance

2020-04-23 Thread Robby Findler
(My reply to this post bounced on the attempt to send to OP.) On Wed, Apr 22, 2020 at 3:39 PM 'racket' via users-redirect < us...@plt-scheme.org> wrote: > > Hi, > I’m writing to the group looking for help with a performance issue. > I’m coding a gallery like application, using the racket/draw

Re: [racket-users] bitmap% performance

2020-04-23 Thread Robby Findler
I don't know that we can help with the specific call you are reporting a slowdown for (maybe, but I won't address that here as asking other questions first seems worth doing). What are you using the bitmap for, exactly? Just to resize the bitmaps? Or as a backing store for drawing into the

[racket-users] bitmap% performance

2020-04-22 Thread 'racket' via users-redirect
  Hi, I’m writing to the group looking for help with a performance issue.  I’m coding a gallery like application, using the racket/draw library, but the bitmap% class seems to be pretty slow. The (make-bitmap 4000 3000) operation takes more than 4 seconds on my computer (a macbook pro with a