[#84867] [Ruby trunk Bug#14357] thread_safe tests suite segfaults — v.ondruch@...

Issue #14357 has been reported by vo.x (Vit Ondruch).

11 messages 2018/01/15
[#85364] Re: [Ruby trunk Bug#14357] thread_safe tests suite segfaults — Eric Wong <normalperson@...> 2018/02/03

v.ondruch@tiscali.cz wrote:

[#84980] [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — hsbt@...

Issue #13618 has been updated by hsbt (Hiroshi SHIBATA).

10 messages 2018/01/23
[#85012] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — Eric Wong <normalperson@...> 2018/01/23

hsbt@ruby-lang.org wrote:

[ruby-core:85153] [Ruby trunk Feature#14410] Reduce allocations and retained objects in the uri common module

From: sam.saffron@...
Date: 2018-01-27 07:27:35 UTC
List: ruby-core #85153
Issue #14410 has been reported by sam.saffron (Sam Saffron).

----------------------------------------
Feature #14410: Reduce allocations and retained objects in the uri common module
https://bugs.ruby-lang.org/issues/14410

* Author: sam.saffron (Sam Saffron)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
Patch at: 

https://github.com/ruby/ruby/pull/1801 

require 'memory_profiler'

MemoryProfiler.report do
  require 'uri'
end.pretty_print

Before:

Total allocated: 986643 bytes (15159 objects)
Total retained:  246370 bytes (2532 objects)

After: 

Total allocated: 926903 bytes (13665 objects)
Total retained:  208570 bytes (1587 objects)

--- 

Quite a significant change, almost 1000 less RVALUEs around when you require 'uri' which almost every web app does.

See also: https://ruby-talk.trydiscourse.com/t/psa-string-memory-use-reduction-techniques/74477/13?u=samsaffron

To explain [-i.chr]



---Files--------------------------------
diff.txt (1.03 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next