Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
130 lines of code uses around 20MByte of mem
Heinrich Piard
1/23/2008 10:23:00 PM
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
--
Posted via
http://www.ruby-...
.
1 Answer
Ilan Berci
1/23/2008 10:39:00 PM
0
Heinrich Piard wrote:
> 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"]
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
130 lines of code uses around 20MByte of mem
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password