2019-01-28 | Paul Boddie | file changeset files shortlog | Test performance with the allocation of opaque blocks containing many instances. This improves performance considerably, but the float instances are never reclaimed. Finding a way to expose the instances as they are issued would make this approach sustainable. | float-preallocation |
paul@341 | 1 | from posix import read |
paul@331 | 2 | |
paul@331 | 3 | try: |
paul@331 | 4 | s = read(3, 10) |
paul@331 | 5 | except IOError, exc: |
paul@331 | 6 | print "read(3, 10): input/output error condition", exc.value |
paul@331 | 7 | |
paul@331 | 8 | s = read(0, 10) |
paul@331 | 9 | print s |