From: Daniel Berger Date: 2003-04-04T01:04:18+09:00 Subject: Re: Newbie question:read file speed Dan Sugalski wrote: > > Be aware that perl cheats unmercifully at IO, to the extent of > peeking beneath the C IO library hood and acting directly on the > underlying buffer structure. While somewhat evil (okay, it's very > evil) it does cut out at least one level of function calls for IO, > and speeds things up some. > -- > Dan This must be the vaunted Perl IO layer that I've seen mentioned from time to time. Any reason Ruby couldn't "cheat" as well? Anything Ruby can borrow here? Dan -- a = [74, 117, 115, 116, 32, 65, 110, 111, 116, 104, 101, 114, 32, 82] a.push(117,98, 121, 32, 72, 97, 99, 107, 101, 114) puts a.pack("C*")