From: Luke G. <lu...@sy...> - 2006-11-27 15:55:13
|
Howdy! The version of yaws_api:htmlize/1 in CVS uses binaries for its accumulator when the input is a binary and this blows the (R9) emulator's heap on a decent-sized input due to bad GC behaviour. Here's a version that doesn't have the problem: %% htmlize htmlize(Bin) when binary(Bin) -> list_to_binary(htmlize_l(binary_to_list(Bin))); htmlize(List) when list(List) -> htmlize_l(List). And a ChangeLog entry: 2006-11-28 Luke Gorrie <lu...@sy...> * src/yaws_api.erl (htmlize): Changed the treatment of binaries to avoid blowing the emulator's heap. The original code created lots Sorry not to send a proper diff but me and sourceforge are not on speaking terms these days. :-) |