Hi to all,
I am excited to be a part of the forum :)
my first post !
I am posting this so that many can benefit from it.
My question: what is the fastest/performance approach to send large managed Bitmap object to unmanaged/native function ?
I will be using C++/CLI, (VS 2008, .NET 3.5) for that purpose
One Approach: pin_ptr
use pin_...
Is it true that asp.net MVC doesn't use SESSIONS [Sessions varibale] and hence there it's performance is better than asp.net webform.
if this is not the case then why the speed of asp.net MVC is faster than asp.net webform?
...
In Direct3D, you can create any type of Vertex you like. You can have a simple Vertex with just positional information, or you could add colour info, texture info, etc etc.
When creating your input layout, you define what parts of a Vertex you've implemented:
D3D10_INPUT_ELEMENT_DESC layout[] =
{
{ "POSITION", 0, DXGI_FORMAT_R32G32B...
We have a java based SaaS application running on mySQL database on a 2 GB Linux VPS. Recently we added RAM to the server and since couple of days, mySQL is taking up 99% of CPU usage. We are quite clueless as to why this is happening. We have made some changes in the my.cnf file as we have read in certain forums. We have enhanced the res...
I have the following test setup:
1024 * 768 screen surface created with SDL_HWSURFACE
The main loop consists only of SDL_Flip() and a simple FPS counter
The problem is:
I am only getting around 1000 FPS with this. Which is really really low when you consider that you do not even draw anything!
The FPS drop really fast when I contin...
I have an application that will download and cache, at a minimum, 250,000 8KB* files totaling about 2GB. I need to remove the least recently used file when updating this cache. *These tiny files span two 4KB sectors.
What is the relative cost of obtaining a file handle by name for this type of file in a directory on an NTFS-formatted 5...
I have an ASP.NET page with this pseduo code:
while (read)
{
Response.OutputStream.Write(buffer, 0, buffer.Length);
Response.Flush();
}
Any client who requests this page will start to download a binary file. Everything is OK at this point but clients had no limit in download speed so changed the above code to this:
while (read)...
Is there a way to speed up this 1D convolution ? I tried to make the dy cache efficient
but compiling with g++ and -O3 gave worse performances.
I am convolving with [-1. , 0., 1] in both directions.
Is not homework.
#include<iostream>
#include<cstdlib>
#include<sys/time.h>
void print_matrix( int height, int width, float *matrix){
...
I have two lists and I need to determine if they contain the same values without sorting (ie. order of values is irrelevant). I know sorting the would work, but this is part of a performance critical section.
Item values fall within the range [-2, 63] and we're always comparing equal size lists, but the list sizes range from [1, 8].
Ex...
I have read a book by O'Reilly that states that 70-80% of the performance of a site can be optimized via the front-end. That may mean that database queries may account to less than 20 or 30% of a site's performance. However, I have seen huge websites like Facebook and Twitter dedicate so much time to optimizing queries (via query caching...
I have multiple php functions for my code and each function tries to setup mysql connection, send queries and closes mysql connection. Is this a good design or should I set up one connection from a master function and then pass the variables to each of these functions to execute queries?
Also, is it possible that this code will give err...
I'm building a CMS-type webapp that allows users to enter arbitrary-sized blocks of HTML. These blocks are entered by the user in their admin area and inserted into their template of choice when a page is delivered.
I'm guessing a user is not going to add more than 50-100 blocks and I'm not going to be getting more than 1000 users any t...
Succinct
How do I performance tune my Linq To SQL DAL methods? Specifically the amount of data being transferred.
Verbose
I have a Winform app that uses Linq To Sql to access it's data. We have 5 branches, 1 physically at the same location as the SQL server and the other 4 at various distances and bandwidths. My app is your typical...
I'am developing a software based on Entity Framework to handle data in a MS SQL Server 2008 database.
[Trouble 1]
I've just tried to insert some small data (about 2 Mb) from my progam to the database : the performance are very bad ! It takes more than 1 minute to insert these datas !
I've try to generate pre-compiled views, I've got t...
Hello
As the title suggest i'm having a problem with the first query against a MS SQL database using the Entity Framework.
I have tried looking for an answer on different sites but no one seems to actually have a solution to this.
I'm loading quite a lot of rows from the database including two 0-many relationships.
The tests was done i...
I've got a table with millions of rows.
The PK of that table is an Int column. User wants to be able to do wildcard search on rows of that table by that PK. When doing this query the trivial way, it will be horribly slow, as Sql server does an implicit conversion of the column value from int to char in order to apply the wildcard every s...
Almost everyone has a Facebook account, even people who are not familiar with the Internet.
With millions people actively using Facebook, updating their status, replying to messages, uploading photos and so on, how is Facebook's page still loading very fast?
I was told that Facebook was built using only PHP and MySQL, so how can Faceboo...
Hi,
I am building a game with 20 levels and have around 15 music files. Currently I am preloading all the 15 sounds using cocos denshion at the start of the game. However the game crashes after a few levels. I get a 'Program received signal: “0”. Data Formatters temporarily unavailable' error. I assume this is because of lack of memory ...
This is kind of a weird question but...
If I run this query in MySQL:
SELECT something FROM table WHERE id IN ();
which is obviously invalid, do I get some kind of time penalty (exception throwing, logging, something), compared to throwing a valid query?
The reason I'm asking is because I just found out an app I'm maintaining (not wri...
I was looking at a very slow SQL query (originating from a Java app using Hibernate deployed in JBoss 5.1). This particular query returned about 10K records but still took 40s or more.
I ended up sniffing the traffic with the database (wireshark has a dissector for TNS) and found something unexpected. When data was coming from the serve...