[Tutor] a FIFO with fixed capacity?

Marcus Goldfish magoldfish at gmail.com
Thu Mar 31 00:29:02 CEST 2005


I need to implement a FIFO with a fixed maximum capacity.  Is there a
name for such a beast?  Also, I read two excellent cookbook recipes on
FIFOs:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/68436
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/210459

Would limiting the max capacity of the FIFO improve performance by
allowing one to preallocate the FIFO buffer?

All comments appreciated!
Thanks,

Marcus


More information about the Tutor mailing list