I have currently worked around this issue trivially by limiting the data size but I'd like to hear if you have better ideas than I do:
Lets say you have a simple local app which uses LINQ to do things with data. I don't want to use SQL server or other "heavy" solution, I just want to load the data into the process and then do queries.
Now, I want to edit and add LINQ queries which work with the data, without having to reload the data every time I change query. I understand VS11 has improved edit and continue when dealing with lambdas but I read that it still does not allow editing lambdas. I haven't tried if this could be worked around somehow by eg. creating new methods during e&c with the lambda queries or something like that.
Ideas (assume that my queries use/need all the data):
1) Keep data in a running process, then somehow rebuild/recompile the linq query code in a dll which is (re)loaded into that process after every modification of the query code.
2) Keep data in another process and the newly compiled/edited linq queries/lambdas are transferred to that process somehow instead of directly loading the newly compiled code.
3) Make the data loading much faster. Currently I use protobuf-net to deserialize the objects that LINQ is used to query. It would be much faster if the parts of the process memory containing the static dataset would be lightly(fast) compressed and saved (and loaded from) to disk in a way that allows efficient use of windows file buffering (load speed 2 GB/s on warm runs). This would probably require deep knowledge of how CLR works and might not be compatible across different CLR's.
4) build some sort of "linqpad" /query builder into the app with the data with IntelliSense and all. This would be nice for an end user app but I want something simple that works with console apps too and TBH I want to edit the code more than just the queries without reloading the data all the time.
But I'm looking for a way to do this in least lines of code possible and least amount of change to switch from existing simple code to this solution without having to change existing linq queries in the code or throw away the protobuf-net (de)serialization code.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.