RE: Comparing caching strategies

2023-02-18 Thread avi.e.gross
Of MRAB Sent: Saturday, February 18, 2023 7:04 PM To: python-list@python.org Subject: Re: Comparing caching strategies On 2023-02-18 23:04, avi.e.gr...@gmail.com wrote: [snip] > > Note how this can cause problems with the original idea here of caching > strategies. Imagine a function that c

Re: Comparing caching strategies

2023-02-18 Thread Thomas Passin
On 2/18/2023 5:55 PM, Peter J. Holzer wrote: On 2023-02-18 15:59:32 -0500, Thomas Passin wrote: On 2/18/2023 2:59 PM, avi.e.gr...@gmail.com wrote: I do not know the internals of any Roaring Bitmap implementation so all I did gather was that once the problem is broken into accessing individual t

Re: Comparing caching strategies

2023-02-18 Thread MRAB
On 2023-02-18 23:04, avi.e.gr...@gmail.com wrote: [snip] Note how this can cause problems with the original idea here of caching strategies. Imagine a function that checks the environment as to what encoding or human language and so on to produce text in. If you cache it so it produces results

RE: Comparing caching strategies

2023-02-18 Thread avi.e.gross
gle version. Otherwise, the cache may be too large and often less effective. As stated earlier, any analogies or comparisons I use are for the purpose of discussion only and opinions are mine. -Original Message- From: Python-list On Behalf Of Thomas Passin Sent: Saturday, February 18

Re: Comparing caching strategies

2023-02-18 Thread Peter J. Holzer
On 2023-02-18 15:59:32 -0500, Thomas Passin wrote: > On 2/18/2023 2:59 PM, avi.e.gr...@gmail.com wrote: > > I do not know the internals of any Roaring Bitmap implementation so all I > > did gather was that once the problem is broken into accessing individual > > things I chose to call zones for wan

Re: Comparing caching strategies

2023-02-18 Thread Thomas Passin
On 2/18/2023 2:59 PM, avi.e.gr...@gmail.com wrote: I do not know the internals of any Roaring Bitmap implementation so all I did gather was that once the problem is broken into accessing individual things I chose to call zones for want of a more specific name, then each zone is stored in one of a

Re: Comparing caching strategies

2023-02-18 Thread MRAB
On 2023-02-18 19:59, avi.e.gr...@gmail.com wrote: [snip] I do not know the internals of any Roaring Bitmap implementation so all I did gather was that once the problem is broken into accessing individual things I chose to call zones for want of a more specific name, then each zone is stored in on

RE: Comparing caching strategies

2023-02-18 Thread avi.e.gross
ply keep track of the ones marked True, or if it makes sense, the ones considered False. -Original Message- From: Python-list On Behalf Of Peter J. Holzer Sent: Saturday, February 18, 2023 5:40 AM To: python-list@python.org Subject: Re: Comparing caching strategies On 2023-02-17 18:08

Re: Comparing caching strategies

2023-02-18 Thread Peter J. Holzer
On 2023-02-17 18:08:09 -0500, avi.e.gr...@gmail.com wrote: > Analogies I am sharing are mainly for me to wrap my head around an idea by > seeing if it matches any existing ideas or templates and is not meant to be > exact. Fair enough? Yeah. But if you are venting your musings into a public space

RE: Comparing caching strategies

2023-02-17 Thread avi.e.gross
unity arise. My mind is very full with such trivia and very little is needed albeit I never know what may come in as useful. Respectfully, Avi -Original Message- From: Python-list On Behalf Of Peter J. Holzer Sent: Friday, February 17, 2023 1:47 PM To: python-list@python.org Subject

Re: Comparing caching strategies

2023-02-17 Thread Peter J. Holzer
On 2023-02-17 00:07:12 -0500, avi.e.gr...@gmail.com wrote: > Roaring bitmaps claim to be an improvement not only over uncompressed > structures but some other compressed versions but my reading shows it > may be limited to some uses. Bitsets in general seem to be useful only > for a largely contigu

RE: Comparing caching strategies

2023-02-16 Thread avi.e.gross
Of MRAB Sent: Thursday, February 16, 2023 11:24 PM To: python-list@python.org Subject: Re: Comparing caching strategies On 2023-02-14 22:20, Rob Cliffe via Python-list wrote: > On 11/02/2023 00:39, Dino wrote: >> First off, a big shout out to Peter J. Holzer, who mentioned roaring >>

Re: Comparing caching strategies

2023-02-16 Thread Chris Angelico
On Fri, 17 Feb 2023 at 15:28, MRAB wrote: > > On 2023-02-14 22:20, Rob Cliffe via Python-list wrote: > > On 11/02/2023 00:39, Dino wrote: > >> First off, a big shout out to Peter J. Holzer, who mentioned roaring > >> bitmaps a few days ago and led me to quite a discovery. > >> > > I was intrigued

Re: Comparing caching strategies

2023-02-16 Thread MRAB
On 2023-02-14 22:20, Rob Cliffe via Python-list wrote: On 11/02/2023 00:39, Dino wrote: First off, a big shout out to Peter J. Holzer, who mentioned roaring bitmaps a few days ago and led me to quite a discovery. I was intrigued to hear about roaring bitmaps and discover they really were a th

Re: Comparing caching strategies

2023-02-16 Thread Rob Cliffe via Python-list
On 11/02/2023 00:39, Dino wrote: First off, a big shout out to Peter J. Holzer, who mentioned roaring bitmaps a few days ago and led me to quite a discovery. I was intrigued to hear about roaring bitmaps and discover they really were a thing (not a typo as I suspected at first). What next, I

Re: Comparing caching strategies

2023-02-14 Thread Dino
On 2/10/2023 7:39 PM, Dino wrote: - How would you structure the caching so that different caching strategies are "pluggable"? change one line of code (or even a config file) and a different caching strategy is used in the next run. Is this the job for a design pattern such as factory or facad