zoukankan      html  css  js  c++  java
  • ree都做了点啥

    Ruby Enterprise Edition Features Guide
    1. Overview of Ruby Enterprise Edition (REE)

    Ruby Enterprise Edition (REE) is a server-oriented distribution of the official Ruby interpreter, and includes various additional enhancements:

    A copy-on-write friendly garbage collector. Phusion Passenger uses this, in combination with a technique called preforking, to reduce Ruby on Rails applications' memory usage by 33% on average.

    An improved memory allocator called tcmalloc, which improves performance quite a bit.

    The ability to tweak garbage collector settings for maximum server performance.

    The ability to inspect the garbage collector’s state and the object heap state, for debugging purposes.

    The ability to obtain backtraces for all running threads, making it easier for one to debug multithreaded applications.

    Thread scheduler bug fixes and performance improvements. Threading on Ruby Enterprise Edition can be more than 10 times faster than official Ruby 1.8.

    Various memory management tweaks so that the Ruby interpreter uses less memory on average, even when copy-on-write is not utilized.

    Some of these features are gathered from third party Ruby patches: RailsBench, Sylvain Joyeux’s object allocation patch, caller_for_all_threads, Darryl Gove’s and Miriam Blatt’s Sparc optimization patches, Joe Damato’s and Aman Gupta’s zero-copy context switching patch, Brent Roman’s MBARI patch set.
  • 相关阅读:
    经典多线程问题(四)-轮流打印字母和数字
    经典多线程问题 (一)-多线程售票
    买卖股票的最佳时机 II
    最长递增(严格递增)子序列-可以不连续
    环形链表 II
    最小栈
    买卖股票的最佳时机
    二叉树的层序遍历
    字符串相加
    最大子序和
  • 原文地址:https://www.cnblogs.com/lexus/p/2217915.html
Copyright © 2011-2022 走看看