Hello, Recently I am dealing with bad performance in an php application that I have build, googling this issue I found out that using services like memcached you can archive a huge performance improvements. The weird thing comes when I try to find a very good and detailed example I failed to find something. Could someone helps me giving a good url or example using php + mysql + memcached?! Thank you!

Member Avatar
Member Avatar
+0 forum 3

I am posting it here because I would really like to read other opinions. I am creating a module for a framework that anyone could install in its system and behave the similar (almost) way. I am starting with that because it is important that I don't control system settings nor could advise anyone for using the module to alter their my.cnf or my.ini . Recently I have start suspecting that something is terribly wrong about InnoDB. I made the fallowing test in 3 servers (I don't go further analyzing servers because the results where almost the same and the …

Member Avatar
Member Avatar
+0 forum 1

Hello! I'm working on a program at work for a device we are building, it's a device that (basically) in real-time reads in sensors, makes decisions about said data, and performs output. I have a loop that runs, and then calculates how long to sleep, so we can get as close as we can as possible to looping approx every second. It sends data over the internet to our servers where we have a web interface, and the ability to send commands back to the unit. It also runs a node server on the unit with a similar web interface. …

Member Avatar
Member Avatar
+0 forum 1

This tutorial is the first time I write about coding techniques for improving the performance of software. This is going to be a step-by-step journey through a real example, with real benchmark results at every step so that you can see the effect of the different optimization techniques. And as my first tutorial on performance optimization, I have to talk about the most important principle in performance optimization: keeping things hot. If you expect this tutorial to be about showing bits of code and the assembly listings generated by the compiler and then, showing how to reduce the number of …

Member Avatar
Member Avatar
+7 forum 3

If I (have to) use C/C++, I'm mostly working on time-critical or real-time applications. Examples are OpenGL texture Streaming (Example: Streaming Satalite Data on planet surface in realtime: https://www.youtube.com/watch?v=ws2ra5MvDi4) or real-time PSM audio maonpulation (Example: Automatic tuning a guitar to a C64= SID tremolo: http://www.yousry.de/audio-example-real-time-tune-detection-tuning-auto-tuning/). During development I'm using "**-O0 -g**" as compiler options to enable *dwarf* debugging information. But as result, STL becomes unusable slow (missing loop unroling, vec optimizations etc.) In these cases I write code like: #ifndef DEBUG // deque too slow std::deque<float> inFIFO; std::deque<float> outFIFO; #else float* inFIFO; float* outFIFO; #endif to avoid later discussions "*Why …

Member Avatar
Member Avatar
+0 forum 10

I had a technical interview last week for a Java Software Engineer position. They asked some pretty basic questions such as: 1) What's the difference between an abstract class and an interface? Which do you use more? 2) How does garbage collection work in Java? 3) What is the difference between pass-by-value and pass-by-reference? 4) What is inheritance? 5) What is encapsulation? Then the interviewer asked these questions which I wasn't too sure about: 6) What good coding practices do you follow? 7) What is the difference between an ArrayList, HashSet, and KeySet? 8) Which is better for garbage collection: …

Member Avatar
Member Avatar
+0 forum 5

I am wanting to measure the performance of an algorithm which I've created, and for some reason the value decreases significantly as I run through my loop

Member Avatar
Member Avatar
+0 forum 2

[code]#include <iostream> using namespace std; long int math; long int check; long int divider = 1; long int inputnum; void dividerp(); void counter(); void inputp(); void dividerp(){ math = inputnum/divider; if (math == 1 or inputnum == 2 or inputnum == 1){ cout<<"You do have a prime number there!"<<endl; system("PAUSE"); system("CLS"); math = 0; inputp(); } else if (math == inputnum){ counter(); } else if ( inputnum % divider != 0 ){ counter(); } else if (math >= 1){ cout<<"You do not have a prime number!"<<endl; system("PAUSE"); system("CLS"); math = 0; inputp(); } else{ counter(); } } void counter(){ divider …

Member Avatar
Member Avatar
+0 forum 6

Dear All, I have 2 tables one tblAssociate and tblData. The link between them is one to many. My search will be based on date time range where if I find even one data in tblData between the set range then I want to show the tblAssociate data. So I have build this query but the problem it takes more then 20 seconds at time. Any idea how to improve this query? SELECT tblLocationFrom.geoFenceName As locationFrom, tblLocationTo.geoFenceName As locationTo, tblAssociate.associateID, CAST(DATE_ADD(tblAssociate.dateTimeStartJourney, INTERVAL '+08:00' HOUR_MINUTE) AS CHAR) As dateTimeStartJourney, CAST(DATE_ADD(tblAssociate.dateTimeEndJourney, INTERVAL '+08:00' HOUR_MINUTE) AS CHAR) As dateTimeEndJourney, tblAssociate.totalC, tblAssociate.totalD, tblAssociate.totalE, tblAssociate.totalP, …

Member Avatar
Member Avatar
+0 forum 5

I am developiong a php application which builds several large collections of objects in the course of interacting with the user. The objects need to persist across requests from the user and I've used php sessions to successfully implement this. The objects are persisted until the user is satisfied with what they have done and they request the information represented by the objects to be saved. In profiling the application I found that the session start takes about half of the total time of a request (about 4 seconds in total for a request). Since not all stored objects are …

Member Avatar
Member Avatar
+0 forum 2

Hello, I need to know what's the best way to search tables with million records. I have a table called <people> and this table has the column: <status> Status might be more than one word like: "I am happy today and the weather is nice". Also, it might be in different languages. Records in table are represented by UTF-8. I need to search for a sub-word, word, or even some words out of the whole sentence like for example (according the status above): Search 1: keyword = "ppy" Search 2: keyword = "am weather" Search 3: keyword = "nice" Search …

Member Avatar
Member Avatar
+0 forum 2

Hello I have these database countries ->country_id ->country_name ->language counties ->county_id ->county_name ->language towns ->town_id ->town_name ->language locations ->location_id ->location_name ->language streets ->street_id ->street_name ->language and i have users that select country,county,town,location and optional street at a selected language and i want to show the show the informations of address quicker than joining all these tables how i can do this? Using index that has all the informations? Thank you very much

Member Avatar
Member Avatar
+0 forum 7

Hi Experts, Which database is better acc to Performance factor. Need Suggestions..

Member Avatar
Member Avatar
+0 forum 3

My vb6 to vb.net converted application performs about twice as slow as the classic ASP version. Here is the setup: I have an old ASP application that uses for most of its function calls a vb6 dll of 30000 + lines of code. I managed to convert the dll into a vb.net dll, built in caching for dataset retrieval, got rid of all interop calls (no more ODBC, but using datasets). The application is a Content Management system, an oldie, but very complete Still, the application, running the same web site on the same server, is twice as slow (6 …

Member Avatar
Member Avatar
+0 forum 5

**I have this timeissorted.c file, and right now it's running at around about 8397599 usec. I'm looking for help toward improving the performance of this code to make it run faster.** #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <stdlib.h> static struct timeval start_ts, end_ts, diff_ts; void startClock() { gettimeofday(&start_ts, 0); } void endClock() { gettimeofday(&end_ts, 0); } struct timeval timeminus(struct timeval a, struct timeval b) { struct timeval res; res.tv_sec = a.tv_sec - b.tv_sec; if (a.tv_usec > b.tv_usec) { res.tv_usec = a.tv_usec - b.tv_usec; } else { res.tv_usec = 1000000 + a.tv_usec - b.tv_usec; res.tv_sec--; } return res; } long …

Member Avatar
Member Avatar
+0 forum 4

Remember when you had to use a whole host of 'utility downloads' just to keep your PC running smoothly? Windows has had optimization tools built in for ages now, so surely the days of PC optimization suites are long over? Not so according to iolo, which has just released System Mechanic 11 - the latest suite of such tools to hit the market since it first launched way back in 1998. ![dweb-sysmech02](/attachments/small/0/dweb-sysmech02.jpg "align-right") With over 40 million users since those early days, System Mechanic is certainly the best known of the tune-up suites for Windows. Here at DaniWeb [we last …

Member Avatar
Member Avatar
+0 forum 8

Hi, I've been studying OPENGL and 3D programming. I've made kind of 3D engine with basic movement, no collision detection yet. Now theres something really wrong in my code. When I go near rendered QL_QUADS framerate drops to 11-12 and allover my framerate is too low. Any suggestions? Core.java package net.viped.vengine; import static org.lwjgl.opengl.GL11.*; import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.input.Cursor; import org.lwjgl.input.Keyboard; import org.lwjgl.input.Mouse; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.DisplayMode; public class Core { public static final int WIDTH = 800; public static final int HEIGHT = 600; private Camera cam; World world =new World(); Cursor emptyCursor; public Core() { try { …

Member Avatar
Member Avatar
+0 forum 1

HI I am very pleased to join this forum I am new to SQL programming , I am facing a challenge our sql server database entry is crossing 1lakh per day,so connection becomes slow.... For this how can i handle the situation!! our databases deals with leads and hits in affiliate website.. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

Today just do walking around looking for information on the search engines Google, Yahoo, Bing, ... to make some material support for the work and also improve their knowledge, this article is shared from the forum "Bing Center Webmaster" 45 step guide to SEO the most basic and easy to understand. Today <snip> would share with you. Online daily to work and study, you are pretty boring to read what type of articles on SEO "go fry fry again" of the forum and website on the Internet. To become a SEO "great" just enough knowledge 20%, 80% rest is patience …

Member Avatar
Member Avatar
+1 forum 20

welcome all, i have a large vb.net application, i wanna analyze the performance of the program at runtime. for example, i want to know how many times a certain function was called, or the usage of computer resources for eah function,, what is the tool that can help me?? thanks all,,,,

Member Avatar
Member Avatar
+0 forum 1

Hi Everyone, I'm doing my third year in Information Technology. As part of our syllabus, we need to go out into the "real world" and find an information systems problem, which we then solve using the skills we've learnt over the years, as well as any new skills we learn this year. This is then the project we work on for the whole year, and forms the "glue" for entire diploma. This project is split up into phases, which follow the SDLC (Software Development Life Cycle) namely planning, analysis, design, implementation and support. I have a bit of a problem …

Member Avatar
Member Avatar
+0 forum 1

Hi everybody, I've got a code which returns to a given text an inverse index. From a list of tokens, the function produces a list sorted by the frequency. Example: inverted_index(['the', 'house', ',', 'the', 'beer']) [('the', [0, 3]), ('beer', [4]), ('house', [1]), (',', [2])] Code: def outp(txt): ind = {} for word in txt: if word not in ind.keys(): i = txt.index(word) ind[word] = [i] else: i = txt.index(word, ind[word][-1]+1) ind[word].append(i) sorted_ind = sorted(ind.items(), key=lsort, reverse=True) return sorted_ind def lsort(kv): return len(kv[1]) The code works, but it's very slow. So, my question is: How could it be written s.t. the …

Member Avatar
Member Avatar
+0 forum 6

Hello, I’m trying to spec a Windows Server setup for 110 users spread over 16 sites, with about 50 of those being connected between 9-5. My initial spec for this is two HP Proliant ML350 G6 with a Xeon Quad Core 2.4GHz in each, 12GB of RAM in one and 6GB in the other, storage to be provided by NAS. The one with more RAM would run Server 2008 R2 Standard virtualised on ESXI 5, and Exchange 2010, Sharepoint Services 3.0, and possibly BlackBerry Enterprise Server Express. The other one would also be virtualised and run Server 2008 R2 Standard …

Member Avatar
Member Avatar
+0 forum 2

Hey, I'm developing a processor-intensive app for Android, which includes nested loops. The development process is still going on, but I'm already trying to find ways to optimize the performance. And I need tips and tricks for it. :) Mainly I've been changing all the for-loops from (int i = 0; i < x; ++i) format to (Object o : list) format. It has sped the program up a bit, but I still get some spikes when iterating through lists with over 2000 entries, and I use Vector<> as my lists. I've also tried to pull all the needed into …

Member Avatar
Member Avatar
+0 forum 4

Is there anyway to optimized application performance? I already try to change setting at [B]Visual Studio 2005[/B] and tick [B]Optimized code[/B] at application properties on [B]Build[/B] section. When I tested and deploy the application at my Windows Mobile device, it seem does't have much different. I want to make the application running faster rather waiting about 25 second to load to the login screen.

Member Avatar
+0 forum 0

Hello! I have coded a compression technique and I am having trouble in measuring the speed of it. I tried to generate log of start time and end time, but compression time of same file varies a lot under windows. That may be happening because other processes would be consuming resources my program could me in blocked mode for a while. Can anyone please suggest me a way to measure the execution time of my program minus the waiting time when it was blocked? I can think of three possible ways (1) Setup a minimal Linux and run my program …

Member Avatar
Member Avatar
+0 forum 4

Hi! I am just wondering what would be fastest(performance-wise) of Game Maker(with GML) or Python with Pygame?

Member Avatar
Member Avatar
+0 forum 4

Not sure if it's a spyware/malware problem, but typing in any field on a web page using Internet Explorer 9 is unbearably slow. I type in a single letter and can wait up to 30 seconds for it to appear on the screen. I suspect a keylogger or something, but it could just be an IE issue that can be cleared up. When I run the same pages in Firefox, I have no problems typing. A log of my HijackThis scan is below: Anyone else have this problem or can help me? Logfile of Trend Micro HijackThis v2.0.4 Scan saved …

Member Avatar
Member Avatar
+0 forum 1

We have here at our home my wife's work computer. While not today's hottest iron, it is still Centrino Duo machine, runningn WinXP Professional with 1 GB RAM. Our home machine is aged AMD Semptron 3100+ (1.81 GHz) and has 2 GB RAM running WindowsXP Home. While running my Mandelbrot program, that I have posted to Python forum (it has critical modules compiled with Shedskin compiler through C++), however our Sempron typically does 640x480 Mandelbrots with max 240 iterations in 0.5 seconds, while the Lexmark takes whole second. How can this newer laptop be so slow?

Member Avatar
Member Avatar
+0 forum 18

I have two spare computers, one running Windows 7, the Other XP and my maim machine running Windows 7. This is not a networking question. Is it possible to link one or two of the spares to my main machine to harness their processing power and memory to the benefit of the main machine? Possibly use the drives for storage and backup but all programmes and applications on the main machine.

Member Avatar
Member Avatar
+0 forum 1

The End.