minor optimization avoiding to create temporary string that might be big
This commit is contained in:
@@ -52,7 +52,9 @@ feature -- Execution
|
|||||||
res.set_status_code ({HTTP_STATUS_CODE}.internal_server_error, Void)
|
res.set_status_code ({HTTP_STATUS_CODE}.internal_server_error, Void)
|
||||||
end
|
end
|
||||||
if res.message_writable then
|
if res.message_writable then
|
||||||
res.put_string ("<pre>" + l_trace + "</pre>")
|
res.put_string ("<pre>")
|
||||||
|
res.put_string (l_trace)
|
||||||
|
res.put_string ("</pre>")
|
||||||
end
|
end
|
||||||
res.push
|
res.push
|
||||||
end
|
end
|
||||||
@@ -64,7 +66,7 @@ feature -- Execution
|
|||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Eiffel Software and others"
|
copyright: "2011-2013, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -73,7 +73,9 @@ feature -- Execution
|
|||||||
res.set_status_code ({HTTP_STATUS_CODE}.internal_server_error, Void)
|
res.set_status_code ({HTTP_STATUS_CODE}.internal_server_error, Void)
|
||||||
end
|
end
|
||||||
if res.message_writable then
|
if res.message_writable then
|
||||||
res.put_string ("<pre>" + l_trace + "</pre>")
|
res.put_string ("<pre>")
|
||||||
|
res.put_string (l_trace)
|
||||||
|
res.put_string ("</pre>")
|
||||||
end
|
end
|
||||||
res.push
|
res.push
|
||||||
end
|
end
|
||||||
@@ -100,7 +102,7 @@ invariant
|
|||||||
fcgi_attached: fcgi /= Void
|
fcgi_attached: fcgi /= Void
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2011, Eiffel Software and others"
|
copyright: "2011-2013, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
Reference in New Issue
Block a user