Code Monkey home page Code Monkey logo

Comments (2)

sgueniot avatar sgueniot commented on June 10, 2024

Hello,
Do move to next on userCursor object instead of data.

Le mar. 7 avr. 2015 12:43, Ahmed I. Khalil [email protected] a
Γ©crit :

Hello,

I have a code something like this

data.moveToFirst();
do {
UserCursor userCursor = new UserCursor(data);
if (userCursor.getIsRegistered() != null && !userCursor.getIsRegistered()) {
// do Something
}
} while (data.moveToNext());

Instead of creating a new UserCursor each time, why don't we use setCursor
and reuse the object instead of creating new one, I think that would be
saving memory, right ?

β€”
Reply to this email directly or view it on GitHub
#82.

from android-contentprovider-generator.

R4md4c avatar R4md4c commented on June 10, 2024

Hi sgueniot,

Thanks for pointing this out, you are right. It will work this way.

I'll close this issue.

from android-contentprovider-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.