﻿<?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>Pop Catalin commented on Performance implications of method signatures</title><description>"In the first example, we have to assume that every read is the last read"

That doesn't sound right to me.

Generally when working with a rotating disks (but not limited to), you generally prefetch and use buffers in order to avoid disk seeks, even if this means fetching more data than necesary.

What's the basis for aforementioned assumtion?</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment11</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment11</guid><pubDate>Wed, 04 Apr 2012 06:50:03 GMT</pubDate></item><item><title>Jonathan Allen commented on Performance implications of method signatures</title><description>I still don't understand. If you are streaming data, just get the first batch and wait until they have consumed enough the trigger the next batch. You don't need to know how many batches will be fetched in total since you are only reading them on demand.

If you are not streaming data, then you shouldn't be using IEnumerable.</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment10</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment10</guid><pubDate>Tue, 03 Apr 2012 22:14:27 GMT</pubDate></item><item><title>Rafal commented on Performance implications of method signatures</title><description>So, did you just prove that having more information is better than having less?</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment9</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment9</guid><pubDate>Tue, 03 Apr 2012 21:42:42 GMT</pubDate></item><item><title>gandjustas commented on Performance implications of method signatures</title><description>Why user should decide it? What if I want just "default" number of results?

Moreover this repository-like interface is too restrictive. How can I get documents after eTag starting with some prefix?</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment8</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment8</guid><pubDate>Tue, 03 Apr 2012 17:03:39 GMT</pubDate></item><item><title>Johannes Gustafsson commented on Performance implications of method signatures</title><description>I believe the point is to force the user to decide how much data it wants. IQueryable won't help there.</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment7</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment7</guid><pubDate>Tue, 03 Apr 2012 15:04:56 GMT</pubDate></item><item><title>gandjustas commented on Performance implications of method signatures</title><description>If IQueryable is too heavy solution, then you can inplement your own ResultSet type and Linq extension methods.</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment6</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment6</guid><pubDate>Tue, 03 Apr 2012 12:02:42 GMT</pubDate></item><item><title>Kristof Claes commented on Performance implications of method signatures</title><description>Poul Foged: As Mark Seemann states in his blogpost (http://blog.ploeh.dk/2012/03/26/IQueryableIsTightCoupling.aspx), this is not always a good idea.</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment4</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment4</guid><pubDate>Tue, 03 Apr 2012 11:30:52 GMT</pubDate></item><item><title>Bart commented on Performance implications of method signatures</title><description>I also do not understand why you aren't going with an IQueryable approach. Can you explain why?</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment3</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment3</guid><pubDate>Tue, 03 Apr 2012 11:27:41 GMT</pubDate></item><item><title>Poul Foged commented on Performance implications of method signatures</title><description>IMO. This is why IQueryable was invented; Lets the callee see the intentions of the the caller ... </description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment2</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment2</guid><pubDate>Tue, 03 Apr 2012 11:24:16 GMT</pubDate></item><item><title>Lee Atkinson commented on Performance implications of method signatures</title><description>May I suggest that the original question was not clear - you asked what the implications for the methods, but the answer is about the implications for implementing those methods.</description><link>http://ayende.com/154529/performance-implications-of-method-signatures#comment1</link><guid>http://ayende.com/154529/performance-implications-of-method-signatures#comment1</guid><pubDate>Tue, 03 Apr 2012 10:28:52 GMT</pubDate></item></channel></rss>