Re: How to read integers from file faster?

2013-09-02 Thread Daniel Llorens
> Date: Sun, 01 Sep 2013 22:55:56 +0200 > From: "Pascal J. Bourguignon" > To: guile-user@gnu.org > > Darren Hoo writes: > >> It is way too slow to read numbers from a file simply by using `read' >> >> for example a txt file contains 10,000,000 line of numbers: > > To get speed, I would: >

Re: How to read integers from file faster?

2013-09-02 Thread Pascal J. Bourguignon
Darren Hoo writes: > It is way too slow to read numbers from a file simply by using `read' > > for example a txt file contains 10,000,000 line of numbers: To get speed, I would: 1- open a binary file, 2- perform double-buffering I/O, (ie. read a buffer while you process another), 3- assu

Re: Problem with wide characters on upgrading to guile 2.x

2013-09-02 Thread Richard Shann
On Thu, 2013-08-22 at 12:14 -0700, Mike Gran wrote: > >> 2. In the inner_main of your scm_with_guile call, > > >> try calling scm_setlocale. Maybe something like this? > >> (This shouldn't make a difference, I think. > >> But, if it does, it says something interesting.) > >> > >> scm_setl