Closed
Description
See this line:
valid_email2/lib/valid_email2/address.rb
Line 26 in 3ff4c92
If you run this script you'll see that loading parsers from the Mail gem requires a LOT of memory:
require 'mail'
require 'get_process_mem'
before = GetProcessMem.new.mb
address = Mail::Address.new("[email protected]")
address.domain
after = GetProcessMem.new.mb
puts "Enabling email parsing requires #{after - before} mb of memory"
# => Enabling email parsing requires 30.9296875 mb of memory
Just throught you should know. Also since the call usually happens at run time instead of load time it's 30mb of memory use for every process.
Here's a discussion on the issue and a proposed (but not accepted) alternative
- Issue: address_lists_parser.rb requires a lot of memory (~30 mb) mikel/mail#1342 (comment) (closed, but it's still a known problem)
- Alternative: Use ragel-bitmap for less memory mikel/mail#1343
Metadata
Metadata
Assignees
Labels
No labels