Hi,
What's the fastest way to turn a string into a byte[] array in C#? I'm sending tonnes of string data through sockets and need to optimize every single operation. Currently I transform the strings in to byte[] arrays before sending using:
private static readonly Encoding encoding = new ASCIIEncoding();
//...
byte[] bytes = encodin...
Since there is no way to join tables using Google App Engine datastore, I loop over a list of entities and look up the related entities one-by-one using the foreign key value.
for (Employee staff: staffList){
Employee manager = pm.getObjectById(Employee.class, staff.getManagerId());
}
There is a good chance that I will be needing ...
Hello i have a query to an Oracle System which involves a view which joins other tables by apliying an TO_NUMBER() to the tables primary key.
If i do the query using TOAD the query is very fast (1 sec for 800 regs). If i do the same query in a java program by JDBC with a String literal (not a parametrized query), the time is good too.
...
I read a table with more than 1 million records from a database. It takes 3 minutes until I have a populated object in memory. I wanted to optimize this process, and serialized this object to a file using binary BinaryFormatter. It created a file with 1/2 GB size. After I deserialized this file back to memory object. This took 11 minutes...
I have a performance problem related to string comparison (in Java).
I'm working on a project that needs to sort a huge list (a TableViewer in Eclipse). Anyway I've pinpointed the bottleneck down to the call to compareTo() for the string to be compared.
Is there any way to optimize the performance of a string compare? I've searched and...
My problem is that my ASP.NET website is running slower on my production server comparatively on my development server.
A page that executes in 120ms in my development environment takes 400ms to execute on the server. I've monitored the SQL server with the profiler and the query being run on the page taking 400ms on the server only take...
I work in an asp.net shop, and I heard today that the bottleneck on our servers is CPU. I had always thought that webapps tended to be I/O and network bound before CPU. Is this an ASP.net/IIS thing? Is it our code? Or am I just completely wrong about the whole thing?
Also, we do public facing social/commerce sites using webforms. It is ...
Edit 2: judging on the lack of replies I start wondering if my issue is clear enough. Please tell me if I need to elaborate more.
Notice: see bottom for a code update!
Short introduction: I'm writing a 2 dimensional flash space game in actionscript. The universe is infinitely big, because of this feature, the background has to be rende...
I'm trying to visualise a graph and allow people to play with it. I found the excellent Graph# library that can create an initial layout so that part is covered. Now I need to make a control that actually draws it and provides the necessary interactivity.
Graph# comes with a nice visualiser itself, however I don't like it because it is ...
I have an app where basically I have a huge table (100 million records) of information, with each row containing a lat/long value.
I'm constantly querying this table to get all the records that fit within a radius around a certain point. For example, "all records within 5 miles of 39.89288,-104.919434"
For this, I have an index over th...
How many bogomips (or any other relevant unit) can an iPhone or iPod touch deliver?
Is performance in larger applications, as on normal PCs, more limited to cache thrashing than to number of CPU instruction? Or is there some other limit?
What is a recommended total polybudget for a state-of-the-art game in a plain iPod touch (i.e. not ...
Hi All
I think the question is a bit silly, but for a newbie startup building a website, do we need to concern the speed of the loading page ? Or what is the stage we need to concern about it ?
...
I'm considering writing a new Windows GUI app, where one of the requirements is that the app must be very responsive, quick to load, and have a light memory footprint.
I've used WTL for previous apps I've built with this type of requirement, but as I use .NET all the time in my day job WTL is getting more and more painful to go back to....
I'm looking for something similar to Hammerhead. Currently, I write javascript code to test, and I'd rather just use a tool that I can easily share and has a GUI.
Edit: I'm hoping for something that tracks load events if possible and can easily do repeat tests.
...
When you save your images (supose you have lots of them) do you store then as blobs in your Database, or as files? Why?
Duplicate of: http://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay
...
I am considering using something like StackFrame stackFrame = new StackFrame(1) to log the executing method, but I don't know about its performance implications. Is the stack trace something that is build anyway with each method call so performance should not be a concern or is it something that is only build when asked for it? Do you re...
When a user performs any action on a page, the request is sent to the server. The server processes the request and sends the files necessary to render the page to the client.
I want to track the time taken by the server for every page load, and log it to database for further analysis.
I calculated the time that each action takes on the...
I've got a fairly big XML file that I need to parse into a .NET class structure (to be mapped to a fixed-length record format and transmitted via MQ). Performance is important, but not absolutely critical.
I almost always use XPathNavigator to read XML files because it's much easier than XmlReader. On the other hand, I know XmlReader i...
We need to read and count different types of messages/run
some statistics on a 10 GB text file, e.g a FIX engine
log. We use Linux, 32-bit, 4 CPUs, Intel, coding in Perl but
the language doesn't really matter.
I have found some interesting tips in Tim Bray's
WideFinder project. However, we've found that using memory mapping
is inherent...
I decided not to use an orm and going to use straight ADO.NET for my project. I know I know its gonna take longer to program but I just want pages to load at high speeds even at peak time.
...