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 cr

Re: [racket-users] bitmap% performance

2020-04-23 Thread 'racket' via users-redirect
e-doc/dvipdfm/mwicks.jpeg") > (send b get-argb-pixels 20 20 5 5 bs) > (bytes->list bs) > > On Wed, Apr 22, 2020 at 4:39 PM 'racket' via users-redirect > wrote: > > > > > > Hi, > > I’m writing to the group looking for help with a performance

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

[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 3.1G