[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

REXML Bug in IOSource's initialize?

From: "Zachary P. Landau" <kapheine@...>
Date: 2004-02-03 20:13:49 UTC
List: ruby-core #2336
Hello,

I posted something about this to ruby-bugs but various people seem to
think it is no longer active, so I thought I better post here. While
poking around with REXML, I realized it was reading in entire documents
before parsing them. This caused problems with reading parts of XML
documents over sockets, and reading in large XML files. One user on
ruby-talk reported Ruby 1.8.1s REXML having MUCH worse performance than
1.8.0s. This patch seems to address these problems.

--
Zachary P. Landau <kapheine@hypa.net>
GPG: gpg --recv-key 0x24E5AD99 | http://kapheine.hypa.net/kapheine.asc

Attachments (1)

rexml_source.diff (357 Bytes, text/x-diff)
--- source_old.rb	2004-02-03 14:46:38.000000000 -0500
+++ source.rb	2004-02-03 14:49:33.000000000 -0500
@@ -123,7 +123,7 @@
 			#super @source.read(@block_size)
 			@line_break = '>'
 			#super @source.readline( "\n" )
-			super @source.readline( @line_break )+@source.read
+			super @source.readline( @line_break )
 			@line_break = encode( '>' )
 		end
 

In This Thread

Prev Next