Op 6-1-2021 om 19:36 schreef Richard
Sargent:
On Wed, Jan 6, 2021 at 10:34 AM Roelof Wobben via Pharo-users <pharo-users@lists.pharo.org> wrote:
Thanks,
Right now im downloading/fetching the images every time again.
As I see it, the biggest bottleneck is that I have 10 images.
And for all 10 I fetching the image and the data I could display when a
user wants it.
So that will be 20 calls to the api.
So maybe some cache could be handy.
Any hints how to make a cache in smalltalk.
Dictionary coupled with #at:ifAbsentPut:
Roelof
Could be working maybe.
Then I have to look how to change my code in moreData to achieve this
or maybe the code from getPaintings
Roelof
ph