Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rings
#14
i think he means accessing an arbitrary item somewhere in the middle. a list indexed modulo its len() can do that with consistent performance, though doing modulo for every access can be an overall performance hit. not every in C was there a single ideal construction although my Virtual Ring Buffer improved byte performance by creating a view of the buffer in the page that followed the buffer as long as the buffer size was made a multiple of the page size. i heard that the HP architecture could not do it but i tested it in x86, Sparc, S/370, ARM, and MIPS.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
rings - by Skaperen - Oct-15-2020, 03:26 PM
RE: rings - by Gribouillis - Oct-15-2020, 07:43 PM
RE: rings - by buran - Oct-15-2020, 08:18 PM
RE: rings - by ndc85430 - Oct-16-2020, 02:35 PM
RE: rings - by Skaperen - Oct-16-2020, 06:55 PM
RE: rings - by metulburr - Oct-17-2020, 11:23 AM
RE: rings - by Gribouillis - Oct-17-2020, 11:47 AM
RE: rings - by buran - Oct-17-2020, 02:58 PM
RE: rings - by Gribouillis - Oct-17-2020, 03:05 PM
RE: rings - by buran - Oct-17-2020, 03:12 PM
RE: rings - by Gribouillis - Oct-17-2020, 03:25 PM
RE: rings - by buran - Oct-17-2020, 03:45 PM
RE: rings - by Gribouillis - Oct-17-2020, 04:10 PM
RE: rings - by Skaperen - Oct-19-2020, 08:37 PM
RE: rings - by Skaperen - Oct-19-2020, 08:39 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020