» Home » faster » Page 1
Making $facebook->api to load faster and post to album to upload faster?
by juma in Programming Languages

I have the following code. Everytime i load this page, it takes 3-5 seconds if there is no user_id information. Can i reduce the time to make it load faster?


$user_id = $facebook->getUser();
if ($user_id) {
echo "have user";
try {
$user_profile = $facebook->api('/me','GET');
} catch (FacebookApiException $e) {
error_log($e);
$u

OpenMP: parallel program not faster (or not very faster) then serial. What am I doing wrong?
by sourceninja in Programming Languages

Look at this code:


#include <stdio.h>
#include <omp.h>
int main()
{
long i, j;
#pragma omp for
for(i=0;i<=100000;i++)
{
for(j=0;j<=100000;j++)
{
if((i ^ j) == 5687)
{
//printf("%ld ^ %ld
", i, j);
break;
Faster loading ListView, faster than the Viewholder method
by VirtualLarry in Programming Languages

When inflating views for a listView, is it better to have all textViews without android:text in the .xml file and how much does that affects the speed? What about ViewStubs, would that be even faster?


When inflating a LinearLayout with 8 textViews without android:text and with android:text="@string/abc", does that change anything ?
note that i am reusing views, so maybe only 1


Race car game, car moving faster on faster computer
by skh in Web Design

I understand why it does that but I don't really have any idea of how to prevent that. So the scenario is, every frame I move the car by a certain of predefined pixels. What happens is when I go on slow or faster computer... well I get less or more frames per seconds so the car moves either slower or faster. I was wondering how I could prevent that.


I suspect that I would have


Pure Python faster than Numpy? can I make this numpy code faster?
by Francois in Programming Languages

I need to compute the min, max, and mean from a specific list of faces/vertices. I tried to optimize this computing with the use of Numpy but without success.


Here is my test case:


#!/usr/bin/python
# -*- coding: iso-8859-15 -*-
''
Module Started 22 févr. 2013
@note: test case comparaison numpy vs python
@author: Python4D/damien
''

Jquery autocomplete: Which is faster? (A) php/mysql/jquery or (B) html/json/jquery? I have two scripts, which is better/faster?
by sandorski in PHP

I have two autocomplete scripts, one of them makes use of (A) php/mysql/html/jquery and the other makes use of (B) html/jquery/json.


I know that since they're using different technologies they might not be able to be compared directly, but from your own experience and from what you can gather from the pages these scripts are located on,


(Q:1) Which one would be faster/Be


reading from MySQL is faster or reading from a file is faster?
by Engr62 in Programming Languages

HI


I got a doubt I have seen reading mysql data is slower in case of large tables...I have done lots of optimization but cant get through..


what I am thinking is will it give a better speed if I store data in a piece of file??


off course each data will be a separate file. so millions of data = millions of file. I agree it will consume the disk space... but w


Left JOIN faster or Inner Join faster?
by NesuD in Databases

So... which one is faster (NULl value is not an issue), and are indexed.


SELECT * FROM A
JOIN B b ON b.id = a.id
JOIN C c ON c.id = b.id
WHERE A.id = '12345'

Using Left Joins:


SELECT * FROM A
LEFT JOIN B ON B.id=A.bid
LEFT JOIN C ON C.id=B.cid
WHERE A.id = '12345'


Here is t


Is particular type exception catching faster than general type exception catching?If faster which ratio?
by changke in Programming Languages

I want to know particular exception like NullPointerException ex is faster than Exception ex.


For example my code throws NullPointerException


try {
...
} catch (NullPointerException e) {
...
}

or


try {
...
} catch (Exception e) {
...
}
<

How can I do this in a faster way?
by Meski in Programming Languages

I have a script that imports CSV files. What ends up in my database is, among other things, a list of customers and a list of addresses. I have a table called customer and another called address, where address has a customer_id.


One thing that's important to me is not to have any duplicate rows. Therefore, each time I import an add

TAGS : this faster

Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2014 © bighow.org All Rights Reserved .