130 lines of code uses around 20MByte of mem

H

Heinrich Piard

Hi,

anybody an idea which of these requires could use that much memory?

require 'yaml'
require 'net/https'
require 'net/http'
require 'openssl'
require 'csv'
require 'date'
require 'time'
require 'socket'
include Socket::Constants


bye
Henry
 
I

Ilan Berci

Heinrich said:
Hi,

anybody an idea which of these requires could use that much memory?

require 'yaml'
require 'net/https'
require 'net/http'
require 'openssl'
require 'csv'
require 'date'
require 'time'
require 'socket'
include Socket::Constants


bye
Henry


irb(main):015:0> %w{yaml net/https net/http openssl csv date time
socket}.each do |req|
irb(main):016:1* p 'about to require ' + req + ' (press key when ready
and then check memory)'
irb(main):017:1> gets
irb(main):018:1> require req
irb(main):019:1> end
"about to require yaml (press key when ready and then check memory)"
y
"about to require net/https (press key when ready and then check
memory)"
y
"about to require net/http (press key when ready and then check memory)"
y
"about to require openssl (press key when ready and then check memory)"
y
"about to require csv (press key when ready and then check memory)"
y
"about to require date (press key when ready and then check memory)"
y
"about to require time (press key when ready and then check memory)"
y
"about to require socket (press key when ready and then check memory)"
y
=> ["yaml", "net/https", "net/http", "openssl", "csv", "date", "time",
"socket"]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,277
Messages
2,571,385
Members
48,088
Latest member
AngieMaliz

Latest Threads

Top