Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] For an Optimum Binary Read?

From: tim:johnsons-web at: 13-Sep-2000 13:37

Hello: I like to pose a question for some comment : I'd like to read a binary index file. This file will contain 32-byte offsets into a database. This file could have over 100k offsets in it, so could be over 400k in size. I think it would be less than optimum to read one integer at a time, but it could also be a drain on system resources to read the entire 400k into memory. If my presumption is correct, then the alternate would be to use a buffer and read a part of the file at a time. As in : bin-buf: make binary! 256 What then could be an optimum read size? Comments and opinions would be appreciated. Thanks Tim