Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce method count #354

Closed
JeroenMols opened this issue Jul 7, 2015 · 7 comments
Closed

Reduce method count #354

JeroenMols opened this issue Jul 7, 2015 · 7 comments

Comments

@JeroenMols
Copy link
Contributor

Due to the dependency on Guave, the method count of SugarORM has increased dramatically

  • SugarORM 1.4 -> 14575 methods
  • SugarORM 1.3 -> 184 methods

Suggestion to remove dependency on Guava as this has too big of an impact on the method footprint of sugar DB.

My app with SugarORM 1.4


DEX COUNTS *


44314 (there are still 16222 references to burn...) *


My app with SugarORM 1.3


DEX COUNTS *


29923 (there are still 30613 references to burn...) *


My app without SugarORM


DEX COUNTS *


29739 (there are still 30797 references to burn...) *


@satyan
Copy link
Collaborator

satyan commented Jul 7, 2015

I agree. I never liked Guava for that one reason. :) Will try to remove the dependency.

@dnalves
Copy link
Contributor

dnalves commented Nov 17, 2015

Any news on this matter? :)
Can anyone explain why MapMaker is being used? Because of the weak references?

@sibelius
Copy link
Contributor

@satyan I think this could help - mttkay/ignition#23

@sibelius
Copy link
Contributor

@dnalves MapMaker is used for Cache, but it is kind of deprecated

@sibelius
Copy link
Contributor

fixed using #437

@isdzulqor
Copy link

I have problem, guys... I'd like to get a value from a table. If the column does not contain any value, then I am going to insert one. So I need getCount in my case.
My question is how to use getCount in this library, could you give me sample code, please? And where I can get the .db file to see my record table

@sibelius
Copy link
Contributor

@isdzulqor you can use method count of SugarRecord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants