Author BTaskaya
Recipients BTaskaya, Mark.Shannon, christian.heimes, josh.r, mark.dickinson, pablogsal, rhettinger, serhiy.storchaka, terry.reedy
Date 2020-12-31.18:05:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I've given this another shot, but even though I was able to create a patch that preserved slices as (type(slice), start, stop, step) tuples in the consts_cache, this final optimization prevented me to finalize it; 😃

So, unless anyone else came up with a reasonable idea to do this optimization at the compile-time without actually making them hashable, I am re-proposing the idea of making them hashable.

  - Up to %30+ speedup on slicing with constants (extremely common)
  - Mappings accepts slices, which would rarely lead some esoteric cases (like the examples given)

Comments would be appreciated
Date User Action Args
2020-12-31 18:05:13BTaskayasetrecipients: + BTaskaya, rhettinger, terry.reedy, mark.dickinson, christian.heimes, Mark.Shannon, serhiy.storchaka, josh.r, pablogsal
2020-12-31 18:05:13BTaskayasetmessageid: <>
2020-12-31 18:05:13BTaskayalinkissue42454 messages
2020-12-31 18:05:13BTaskayacreate