[parrot/parrot] ed18fa: [io] optimize PIO_NR_OPEN from 256 to 3 [GH #1093]

GitHub noreply at github.com
Sun Oct 5 07:33:25 UTC 2014


  Branch: refs/heads/smoke-me/pio_nr_open-3-gh1093
  Home:   https://github.com/parrot/parrot
  Commit: ed18fad22bc633a3f20ea2c1412bba9fc1f61d95
      https://github.com/parrot/parrot/commit/ed18fad22bc633a3f20ea2c1412bba9fc1f61d95
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-10-05 (Sun, 05 Oct 2014)

  Changed paths:
    M include/parrot/io.h
    M src/io/api.c

  Log Message:
  -----------
  [io] optimize PIO_NR_OPEN from 256 to 3 [GH #1093]

PIO_NR_OPEN is now the number of statically allocated interpreter std
handles for stdin, stdout and stderr only.  It is only used safely in
one place, accessing only 0-2.
It has nothing to do with the total number of open filehandles, which
are allocated dynamically as PMC.
Leads to a small memory optimization, 253 less words for each interpreter.




More information about the parrot-commits mailing list