Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework I/O buffering #633

Merged
merged 4 commits into from
Apr 21, 2017
Merged

Rework I/O buffering #633

merged 4 commits into from
Apr 21, 2017

Commits on Apr 21, 2017

  1. Removed unused imports

    jonas committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    a163962 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6e9b3e4 View commit details
    Browse the repository at this point in the history
  3. Fix scala-native#626: Do not use fixed sized ByteBuffers in CodeGen

    The buffers provided by withScratchBuffer has a fixed size which for
    large programs might be insufficient. Since CodeGen internally uses a
    StringBuffer we can instead allocate a buffer of the suitable size.
    jonas committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    74c683d View commit details
    Browse the repository at this point in the history
  4. Fix scala-native#580: Make ByteBufferPool less memory-hungry

    Reduce the buffer size to 8M based on the fact that the largest .nir file
    currently in the repo is java.lang.Character at ~2M:
    
        > find . -name "*.nir" | xargs stat -f "%z %N" | sort -n | tail -5
        546211 ./scalalib/target/scala-2.11/classes/scala/collection/immutable/StreamViewLike$$anon$13.nir
        580412 ./scalalib/target/scala-2.11/classes/scala/collection/mutable/IndexedSeqLike$$anon$1.nir
        612962 ./javalib/target/scala-2.11/classes/java/math/BigDecimal.nir
        699387 ./javalib/target/scala-2.11/classes/java/util/Arrays$.nir
        2301253 ./javalib/target/scala-2.11/classes/java/lang/Character$.nir
    jonas committed Apr 21, 2017
    Configuration menu
    Copy the full SHA
    25071d6 View commit details
    Browse the repository at this point in the history