﻿<?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>Ayende Rahien commented on Not all objects are created equals</title><description>Try it with date time, or your own class
</description><link>http://ayende.com/3459/not-all-objects-are-created-equals#comment7</link><guid>http://ayende.com/3459/not-all-objects-are-created-equals#comment7</guid><pubDate>Tue, 29 Jul 2008 13:55:15 GMT</pubDate></item><item><title>Bill Pierce commented on Not all objects are created equals</title><description>Are you sure that string interning doesn't have something to do with the performance of the string test?
</description><link>http://ayende.com/3459/not-all-objects-are-created-equals#comment6</link><guid>http://ayende.com/3459/not-all-objects-are-created-equals#comment6</guid><pubDate>Tue, 29 Jul 2008 13:53:09 GMT</pubDate></item><item><title>Ayende Rahien commented on Not all objects are created equals</title><description>Ken,
  
It doesn't matter what string you are using, or whatever you create another type
</description><link>http://ayende.com/3459/not-all-objects-are-created-equals#comment5</link><guid>http://ayende.com/3459/not-all-objects-are-created-equals#comment5</guid><pubDate>Tue, 29 Jul 2008 07:31:20 GMT</pubDate></item><item><title>Ken Egozi commented on Not all objects are created equals</title><description>not sure, but due to the immutability of string, it might've created a single 'aaaaa' object.
  
did you try to call i.ToString() instead? (would new a string so it's quite the same).  or, new string('a', i) ?
  
</description><link>http://ayende.com/3459/not-all-objects-are-created-equals#comment4</link><guid>http://ayende.com/3459/not-all-objects-are-created-equals#comment4</guid><pubDate>Tue, 29 Jul 2008 07:30:02 GMT</pubDate></item><item><title>Ayende Rahien commented on Not all objects are created equals</title><description>Run it in a profiler, you'll see where that cost is
</description><link>http://ayende.com/3459/not-all-objects-are-created-equals#comment3</link><guid>http://ayende.com/3459/not-all-objects-are-created-equals#comment3</guid><pubDate>Tue, 29 Jul 2008 05:30:37 GMT</pubDate></item><item><title>Damien Guard commented on Not all objects are created equals</title><description>The constructor for WeakReference makes a call to GCHandle, which makes an extern call. The result of which is ~0.000850ms difference.
  
  
Why is it surprising?  Do all your objects with constructors create in exactly the same amount of time?
  
  
[)amien
  
  
</description><link>http://ayende.com/3459/not-all-objects-are-created-equals#comment2</link><guid>http://ayende.com/3459/not-all-objects-are-created-equals#comment2</guid><pubDate>Tue, 29 Jul 2008 01:07:13 GMT</pubDate></item><item><title>Yitzchok commented on Not all objects are created equals</title><description>Isn't the object created equally it just depends on the amount of work done in the Constructor (ctor)?
</description><link>http://ayende.com/3459/not-all-objects-are-created-equals#comment1</link><guid>http://ayende.com/3459/not-all-objects-are-created-equals#comment1</guid><pubDate>Mon, 28 Jul 2008 23:32:43 GMT</pubDate></item></channel></rss>