﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Dinesh Gajjar commented on Fighting the profiler memory obesity</title><description>Sorry, I found the answer in your previous post :). Blogs shows latest first, so I was reading this one before the persistence one :)
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment18</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment18</guid><pubDate>Wed, 30 Dec 2009 05:06:00 GMT</pubDate></item><item><title>Dinesh Gajjar commented on Fighting the profiler memory obesity</title><description>Just a question : Since you are serializing huge amount of data and then filtering, couldn't you use some embedded Database like SQLite ? I have used it in some situations like this and found it to be useful.
  
  
But to be honest, no idea of the challenges you are dealing here, so i may be wrong.
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment17</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment17</guid><pubDate>Wed, 30 Dec 2009 04:56:32 GMT</pubDate></item><item><title>Jon V commented on Fighting the profiler memory obesity</title><description>I remember something about a fast serialization approach developed by Greg Young. Would this be helpful to you?
  
  
[codebetter.com/.../fast-serialization.aspx](http://codebetter.com/blogs/gregyoung/archive/2008/08/24/fast-serialization.aspx)</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment16</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment16</guid><pubDate>Tue, 29 Dec 2009 23:26:43 GMT</pubDate></item><item><title>Ori Almog commented on Fighting the profiler memory obesity</title><description>Hi
  
What about T4 to generate your serialization code, may be easier to maintain?
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment15</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment15</guid><pubDate>Tue, 29 Dec 2009 20:54:45 GMT</pubDate></item><item><title>Ayende Rahien commented on Fighting the profiler memory obesity</title><description>Anon,
  
That isn't an issue. I am only loading chunks (a single session) from the file, so unless I have a single _session_ that consume more than the available memory, it is a non issue.
  
And if I do, well, there are other problems to be solved there first.
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment14</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment14</guid><pubDate>Tue, 29 Dec 2009 17:56:27 GMT</pubDate></item><item><title>Anon commented on Fighting the profiler memory obesity</title><description>Are you planning to handle the scenario of a initial file that is larger than total available memory for these changes?
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment13</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment13</guid><pubDate>Tue, 29 Dec 2009 16:31:54 GMT</pubDate></item><item><title>Rob Eisenberg commented on Fighting the profiler memory obesity</title><description>Ah!  Great!  Of coarse.  I was feeling rather lowly being the bearer of bad news after such great progress...  
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment12</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment12</guid><pubDate>Tue, 29 Dec 2009 16:05:12 GMT</pubDate></item><item><title>Ayende Rahien commented on Fighting the profiler memory obesity</title><description>Rob,
  
There is always pre-build step :-)
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment11</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment11</guid><pubDate>Tue, 29 Dec 2009 16:03:25 GMT</pubDate></item><item><title>Ayende Rahien commented on Fighting the profiler memory obesity</title><description>Frans,
  
I did.
  
It did a lot of things manually, and that wasn't what I was after.
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment10</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment10</guid><pubDate>Tue, 29 Dec 2009 16:03:06 GMT</pubDate></item><item><title>Rob Eisenberg commented on Fighting the profiler memory obesity</title><description>Ok.  This is really going to frustrate you.  But, there is not CodeDom in Silverlight ;(  There is Reflection.Emit though...
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment9</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment9</guid><pubDate>Tue, 29 Dec 2009 16:01:48 GMT</pubDate></item><item><title>Frans Bouma commented on Fighting the profiler memory obesity</title><description>You didn't look at the fast serialization articles I mentioned to you ?
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment8</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment8</guid><pubDate>Tue, 29 Dec 2009 14:36:38 GMT</pubDate></item><item><title>Imran commented on Fighting the profiler memory obesity</title><description>Interesting stuff, would be interested in seeing some of the code you have used to do this. Any chance of posting part of it?
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment7</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment7</guid><pubDate>Tue, 29 Dec 2009 12:24:08 GMT</pubDate></item><item><title>Ayende Rahien commented on Fighting the profiler memory obesity</title><description>Julien,
  
I _am_ making use of Google Buffer already.
  
The problem is that it requires me to adhere to a very rigid structure, which would limit my ability to work with it
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment6</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment6</guid><pubDate>Tue, 29 Dec 2009 12:22:02 GMT</pubDate></item><item><title>Julien commented on Fighting the profiler memory obesity</title><description>Have you look into google's protocols buffers? it's a lot faster and space efficient than BinarryFormatter : 
[code.google.com/p/protobuf-net/wiki/Performance](http://code.google.com/p/protobuf-net/wiki/Performance)</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment5</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment5</guid><pubDate>Tue, 29 Dec 2009 12:19:16 GMT</pubDate></item><item><title>Ayende Rahien commented on Fighting the profiler memory obesity</title><description>Zamboch,
  
When deserializing, the data is pretty small,so I never actually had to check that.
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment4</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment4</guid><pubDate>Tue, 29 Dec 2009 12:15:56 GMT</pubDate></item><item><title>Zamboch commented on Fighting the profiler memory obesity</title><description>When deserializing, how much of the time take memory allocation itself ?
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment3</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment3</guid><pubDate>Tue, 29 Dec 2009 12:13:37 GMT</pubDate></item><item><title>Ayende Rahien commented on Fighting the profiler memory obesity</title><description>Some of the data is thrown away, or kept in a much more compact form.
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment2</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment2</guid><pubDate>Tue, 29 Dec 2009 12:05:59 GMT</pubDate></item><item><title>Rafal commented on Fighting the profiler memory obesity</title><description>How comes that serializing 900 Mb of messages gives a 454Mb file?
</description><link>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment1</link><guid>http://ayende.com/4343/fighting-the-profiler-memory-obesity#comment1</guid><pubDate>Tue, 29 Dec 2009 12:04:43 GMT</pubDate></item></channel></rss>