--
-$Id: ChangeLog 32 2005-04-19 09:07:57Z tilman $
+$Id: ChangeLog 33 2005-04-30 11:10:16Z tilman $
++
+2005-04-30 Tilman Sauerbeck (tilman at code-monkey de)
+ * lib/eet.rb: Tweaked Stream#serialize for performance
+
2005-04-19 Tilman Sauerbeck (tilman at code-monkey de)
* Rakefile: Code cleanup
#--
-# $Id: eet.rb 23 2005-04-09 17:16:58Z tilman $
+# $Id: eet.rb 33 2005-04-30 11:10:16Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
end
def serialize
- inject("") { |a, c| a << c.serialize }
+ map { |c| c.serialize }.join
end
def Stream.deserialize(data)