473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Speed

H

Is it possible that the Personal edition of C#, provided for free with the book Study C# Deluxe, produces very slow code? When I write a loop at home that creates a 100,000 objects, it takes the App almost 1.5 minute. When I do this in VS 2002 enterprise, it takes only a couple of MSecs

I was really disappointent about the speed yesterday, but I think I have a wrong version

Kind regards
Alexander
Nov 16 '05 #1
5 1670
Zanzibar <am**************@hotmail.com> wrote:
Is it possible that the Personal edition of C#, provided for free
with the book Study C# Deluxe, produces very slow code? When I write
a loop at home that creates a 100,000 objects, it takes the App
almost 1.5 minute. When I do this in VS 2002 enterprise, it takes
only a couple of MSecs.

I was really disappointent about the speed yesterday, but I think I
have a wrong version.


I presume you mean the personal edition of Visual C#. It shouldn't
produce any slower code - I suspect that either you've got different
code in your two test apps, or something else is different.

Can you post the "slow" code you're using?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
Well, it could be that the Personal edition misses the optimizing compiler,
but I am not sure really.

"Zanzibar" <am**************@hotmail.com> wrote in message
news:65**********************************@microsof t.com...
Hi

Is it possible that the Personal edition of C#, provided for free with the book Study C# Deluxe, produces very slow code? When I write a loop at home
that creates a 100,000 objects, it takes the App almost 1.5 minute. When I
do this in VS 2002 enterprise, it takes only a couple of MSecs.
I was really disappointent about the speed yesterday, but I think I have a wrong version.
Kind regards
Alexander


Nov 16 '05 #3
H

Below you have sortlike source. This is the test I performed today. If I'm not mistaken the source from yesterday was more or less the same.

The class I was using yesterday was inside a seperate classlibrary and I was debugging this with a Startup project. Might this make difference

Kind regard

Alexande

internal class Tes

private string FStr
private int FInt

public Test(string aStr, int aInt

FStr = aStr
FInt = aInt

private void button1_Click(object sender, System.EventArgs e

textBox1.Text = DateTime.Now.ToString()
for (int I = 1; I <= 1000000; I++) new Test("Hallo" + I.ToString(), 12)
textBox2.Text = DateTime.Now.ToString()
Nov 16 '05 #4
Zanzibar <an*******@discussions.microsoft.com> wrote:
Below you have sortlike source. This is the test I performed today.
If I'm not mistaken the source from yesterday was more or less the
same.
So was that the very slow source, or not? Please post the code which
took a long time. Slight changes to the code could make a *big*
difference in execution speed.
The class I was using yesterday was inside a seperate classlibrary
and I was debugging this with a Startup project. Might this make
difference?


Shouldn't really.

If you can post the code which took ages, and possibly email me the DLL
it produced, that would help.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #5
Stupid m

I figured it out. I was using a debugassambly with different code than the editor was showing to me. In Delphi this happens sometimes to and is very, very confusing. In the old source the item was added to an array and was checked each time for existance

Many thanks anyway

Kind regard

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Yang Li Ke | last post by:
Hi guys, Is it possible to know the internet speed of the visitors with php? Thanx -- Yang
8
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with...
34
by: Jacek Generowicz | last post by:
I have a program in which I make very good use of a memoizer: def memoize(callable): cache = {} def proxy(*args): try: return cache except KeyError: return cache.setdefault(args,...
28
by: Maboroshi | last post by:
Hi I am fairly new to programming but not as such that I am a total beginner From what I understand C and C++ are faster languages than Python. Is this because of Pythons ability to operate on...
52
by: Neuruss | last post by:
It seems there are quite a few projects aimed to improve Python's speed and, therefore, eliminate its main limitation for mainstream acceptance. I just wonder what do you all think? Will Python...
7
by: YAZ | last post by:
Hello, I have a dll which do some number crunching. Performances (execution speed) are very important in my application. I use VC6 to compile the DLL. A friend of mine told me that in Visual...
6
by: Ham | last post by:
Yeah, Gotto work with my VB.Net graphic application for days, do any possible type of code optimization, check for unhandled errors and finally come up with sth that can't process 2D graphics and...
6
by: Jassim Rahma | last post by:
I want to detect the internet speed using C# to show the user on what speed he's connecting to internet?
11
by: kyosohma | last post by:
Hi, We use a script here at work that runs whenever someone logs into their machine that logs various bits of information to a database. One of those bits is the CPU's model and speed. While...
4
by: nestle | last post by:
I have DSL with a download speed of 32MB/s and an upload speed of 8MB/s(according to my ISP), and I am using a router. My upload speed is always between 8MB/s and 9MB/s(which is above the max upload...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.