yashsingh1/xdaforums huggingface dataset:
[Epic 4G Android Development] jnadke:
The optimizations he's making are primarily centered around experimenting with various compiler optimization flags. They would not be compatible with other phones, and would be of no interest to other platforms, and therefore not really applicable to either of those links.

Android by default actually doesn't apply any optimizations, processor or otherwise, to the base system. I think only recently they introduced -O1 or -O2 to the compiler line (because compiler optimizations sometimes introduce bugs or exacerbate race conditions).

Also, optimizations are highly subjective. One platform may benefit from loop unrolling, while others may not due to cache size and memory bandwidth limitations. On Android platforms the best optimizations you can make is to make the code smaller. Phones are notoriously bandwidth limited (both on the system bus and memory bus).

Generally, compiler optimizations are one of the worst ways of optimizing things, because different compilers produce different results. Even within different versions of the same compiler!

Here's a link I've had from a while back (from looking at this topic when I did HTC Vogue development) about the performance within versions of the most popular ARM compiler, codesourcery:

http://hardwarebug.org/2009/08/05/arm-compiler-shoot-out/

He's benchmarking other compilers against codesourcery 2007q3, the numbers are the relative time ratio of the execution of the code generated by the new compiler compared to 2007q3. You can see that on some tests, the new compiler does good, and on others it does bad, other than for RVCT.

The problem with RVCT, is it requires a license ($$$), they do have a free temporary license, and I've considered grabbing one and doing something similar to what no2chem is doing. I'm glad he has more initiative than I do.

Edit: Here's a few other links from that same guy's blog:

http://hardwarebug.org/2009/08/20/arm-compiler-shoot-out-round-2/

http://hardwarebug.org/2010/01/30/bit-field-badness/

http://hardwarebug.org/2010/01/15/arm-compiler-update/
[Epic 4G Android Development] Decad3nce:
Derp. Next time I'll read OP fully :x. I had initially thought that he had done something similar in this thread as his other one(modified dalvik); where he swapped out inefficient macros for his own application of armv7 assembly instructions for performance gain(and stripping of debug code). I'll move along, nothing to see here.

Either way, I derped. So I apologize for the derpness.
[Epic 4G Android Development] asenduk:
No2Chem??

Wow!

Now I feel very sorry for leaving Sprint

:(
[Epic 4G Android Development] jnadke:
Hah, np. Got me to go through my logs. I hope my information helps out no2chem in some way.
[Epic 4G Android Development] no2chem:
I'm not playing with compiler flags: I'm changing the actual assembly code of the routines (i.e., substituting C versions with optimized ARM ones) I'm pretty sure that that the performance gains apply to all phones that support the instructions emitted by the assembler (ARMv7). When I talk about RVCT, I'm not talking about using it to compile bionic, I'm talking about using the libc that ARM provides with RVCT.

Optimizations are subjective, but there is overhead from C inefficiencies and syscall inefficiencies that can be removed, and an objective measurement of the improvement in performance can be derived.

As to platform dependence, that mainly depends on the interface of the existing bionic (which hopefully hasn't changed) and the exports (between froyo and gingerbread, for example, a misspelling of one of the initialization exports have been corrected).
[Epic 4G Android Development] jnadke:
Ah, I apologize for speaking on your behalf. Good effort :D
[Epic 4G Android Development] jbadboy2007:
I love a good dev chat out in the open. Lol
[Epic 4G Android Development] epic4GEE:
Hey no2chem is there a way to revert back to stock once these files are flashed? I ask this because I'm no longer able to use droidwall (firewall app), it gives me some kind of bionic/libc error. I think this was caused by flashing one or both of the files.
[Epic 4G Android Development] brickwall99:
Also would like to know this.

I will flash once I know I can reverse in my case idiot phone decides to asplode.

Nice work! :D
[Epic 4G Android Development] p3dr0maz:
Pull /system/lib/libc.so from your favorite ROM and replace the modded one with RootExplorer. Or replace it in his update.zip and flash it with CWM3.
[Epic 4G Android Development] epic4GEE:
I tried replacing the one in the zip. Extracted, deleted Libc.so, copied one from another rom put it in the lib folder zipped it, tried to flash and it aborts install. Is my mistake from doing all this on my phone and not on a pc first?
[Epic 4G Android Development] p3dr0maz:
Yeah i would use something on your PC (i like WinRAR) to do it. I've never tried it directly on the phone. It's probably doing some weird with compression settings or something like that.
[Epic 4G Android Development] epic4GEE:
Cool bud, thanks for the assist. I'm off to work now so I'll try later once I'm home.
[Epic 4G Android Development] chris41g:
doing it on the phone might just be breaking the zips signature, so just turn of the signature check if you are on cwm3
[Epic 4G Android Development] epic4GEE:
That sounded probable, but it was already disabled.
[Epic 4G Android Development] jbadboy2007:
Cuz this increases performance or effiency does it use more battery or less? Someone please post some reference to performance gain with this maybe a before and after with sb or quad.
[Epic 4G Android Development] jnadke:
Both increase performance and use less battery.

This is optimizing the number of ops required to perform a task, allowing the processor to finish quicker and therefore go into a power saving state quicker.

However, this is merely the libc library. While it will get called, optimizations like this probably wouldn't provide much more than 5% improvement (it can depend on the task/program). These are second-order optimizations. Programs don't call these functions all the time.
[Epic 4G Android Development] jbadboy2007:
5% is 5% I guess I will try it out just wanted some info first. I don't like being the guinea pig. Already used my insurance once.
[Epic 4G Android Development] epic4GEE:
Ok so I swapped the Libc.so file for one from another rom on my pc. Now when I go to apply the zip it gives the same error(install aborted) but now it has the (bad) under the error. I guess a last resort will be flashing a rom over it to see if it fixes the iptables bionic/libc error in droidwall.

Edit; zipped with xp utility, went back zipped with 7zip and still get the installation aborted error, but no (bad) error under it.

Edit edit; using HiSurfing as firewall and its working properly....good enough.
[Epic 4G Android Development] Custodian:
Hmm...rodderiks security patches keeps alot of phones safe...really no need for heavy security...unless you're constantly visiting warez sites...assuming you use roms from this forum..
[Epic 4G Android Development] jbadboy2007:
Also no need for a firewall if you know the sites you are visiting, randomly download things and have an itchy finger with links.
[Epic 4G Android Development] epic4GEE:
Missing the actual point, the point is to block apps from having any data access. An example of why I wanted to re enable the firewall as I haven't been using it for awhile. I downloaded sdtools and paranoid or not when I run the test, I noticed while it was doing the read test it was sending bits of data. Now I have no idea what or why it needs to send data when its doing a read test, but still makes me wonder. So it was just simply wanting to block that app from having any internet access.

The only thing even remotely warez on my phone would be psx4droid, I have no problem paying to play.;)

NOTE; psx4droid is posted by the dev for free, so not really warez.
[Epic 4G Android Development] jbadboy2007:
Then deactivate data
[Epic 4G Android Development] no2chem:
Sorry for being late on replying to this - ill put up a zip tht reverts back to the stock bionic tonight, I've ben pretty busy
[Epic 4G Android Development] no2chem:
Ok, here's the restore, sorry for any delay:

www.nuerom.com/bionic/restore-ec05.zip
[Epic 4G Android Development] epic4GEE:
No problem, I knew you'd come though as soon as you could.:D
[Epic 4G Android Development] Custodian:
I can tell the difference, tight work my boy. If you optimize this patch anymore please be sure to add the change log. Thanks again for making the epic more stable. :-)
[Epic 4G Android Development] b15love:
to the OP, what are these bits of data that this is sending out?
[Epic 4G Android Development] chris41g:
you misread what was posted, he said he put a firewall on his phone to keep apps like sdtools from sending bits of data out when running test and this lib was keeping the firewall from behaving correctly...
[Epic 4G Android Development] b15love:
ah thx for clearing that up :)
[Epic 4G Android Development] epic4GEE:
And I'm sorry for being an idiot..... it was the app data in droidwall and repairing it was as simple as deleting app data.....ugh noobs right?:D I moved to HiSurfing and it was working fine, till just now it started acting up with a similar error. I cleared data and it was fine, so then I thought I better go try droidwall and do the same thing....oops it was all my issue and not the bionic.zip.......my sincere apologies for making doodoo in your thread.
[Epic 4G Android Development] no2chem:
version 1.1 released, see first post for details.
[Epic 4G Android Development] Custodian:
Whatz iz thiz libmacro.zip? Is it for devs only or do leechers I mean users have to flash this aswell with 1.1?

Edit: well I installed....then my xda app froze lol...so I repushed the 1.1, and cleared xda app data...seems to be runnin smooth again...

troll stomping beast
[Epic 4G Android Development] no2chem:
libmicro.zip is just for the 0xdroid benchmark, if you don't plan on running it, you don't need it.
[Epic 4G Android Development] p3dr0maz:
Testing meow.

Update: Everything is still running smooth.
[Epic 4G Android Development] engine95:
Update 1.1 seems to break WiFi. Odined 3 times now using Deodexed tar posted by chris41g which has your 2 optimizations. Using the original .tar with ver 1.0bionic, WiFi works fine. But as soon as I update to 1.1 WiFi breaks. These are fresh from Odin installs, CWM 2.5.5 with absolutely nothing changed and only Wifi setup. My phone says Wifi Disabled but still keeps scanning for Wifi. Hope this is a good enough description. And Thank you for all you are doing for the Epic.
[Epic 4G Android Development] rgregg504:
I had no wifi problems with 1.1

Midnight 5.2 byor journaling off
[Epic 4G Android Development] omair2005:
everything working fine on bakedSnack.. everything is much snappier!
[Epic 4G Android Development] chris41g:
I'll take a look at it.. because the 1.1 works fine for me on the rom I run.. you running the stock or modified??
[Epic 4G Android Development] dmarden:
No issues with 1.1, running great here flash over SFR 1.1

Thanks!
[Epic 4G Android Development] HooliganAMA:
Broke my wifi on Bonsai 4.01 also had random lockups.
[Epic 4G Android Development] engine95:
The stock.tar. I installed again without the update and its working fine. That's why I posted my problem here. But thanks for looking into it. I run bone stock with root if that helps.
[Epic 4G Android Development] Custodian:
Give the phone a minute to adjust, or reflash..that's what I did.
[Epic 4G Android Development] engine95:
I forgot to mention that I'd ran the stock .tar for a couple days with wifi before i used this update. Then I updated to this, and about a day later used wifi. That was when I realized that wifi broke.
[Epic 4G Android Development] lattiboy:
Wow! Thanks no2chem!

Noticeably faster on Ace rom v2 with Genocide kernel.

Possibly placebo effect, but transitions and animations look flawless and have ZERO lag.

My setup was quite speedy before, but now I don't see how it could be any faster.

Really appreciate your work and I now share the respect others here have for you!
[Epic 4G Android Development] lattiboy:
Should also mention I'm not overclocked at all. Running 1000<200 undervolted.

Wifi works great and survived my stress tests!
[Epic 4G Android Development] chris41g:
I dont know why, or what it is.. but on all four of my stock odin packages i released this breaks wifi, youtube and the camcorder... 2 packages are nociq and 2 are not. 2 are rfs and 2 are ext4. the only thing they have in common is they are all deodexed zip aligned and png-optimized. 1.0 works great on them though...
[Epic 4G Android Development] dmarden:
Weird, no issues here on SFR 1.1
[Epic 4G Android Development] chris41g:
seems to be related to the fact that they are mostly stock
[Epic 4G Android Development] feefeeboomboom:
i was rocking this on my Fallen.Android.V1.8 and it borked camera.
[Epic 4G Android Development] flyers2114:
I have been running it on SRF for a month now with zero issues....camera is fine....and so have many others....this is not breaking your camera...
[Epic 4G Android Development] chris41g:
thats quite an asinine statement... while it doesnt break mine on SRF... it does on all 4 of my stock deodexed tars.. for a fact its this upgrade, but only the 1.1 version. 1.0 is fine. so on some roms its fine, and some its not. its the interaction of this and some other component obviously.. but i spent hours diagnosing it, and it fixed my camera, youtube, and wpa/wpa2 on wifi.. and by camera it was actually camcorder...
[Epic 4G Android Development] flyers2114:
Thx for the subtle nonsense....please in the future if you have something to say you can leave out the negativity of the 1st statement...not really needed...but if it makes ya feel better...feel free...idc really either way....

But anyways my response was quoted to him....not you....and the only time i have seen this break anything is when its related to stock...hence he is not on stock...could be something as simple for him as corrupt sdcard....letting him know that peeps on custom have not had issues....all your issues are related to stock..have a great day...I know I will...:D
[Epic 4G Android Development] feefeeboomboom:
first off, it may be related to EC05.

second, i build and develop Fallen.

third, really a corrupt flash... honestly you are complaining about posting negativity. your post to me was worthless in all regard for the word. thats like saying "OMG it works for me so u suck and did something wrong" post some dam proof fool. i just got done testing with both the libc.so and libdalvik.so and the bionic breaks the "camcorder".

fourth, why are you talking? why are you flaming my post?

this is a worthless post and it disrespects "no2chem". I'm sick of people just quoting a valid post to talk 5h17.
[Epic 4G Android Development] flyers2114:
I dont give a **** if you develop for the government....all I said is that it may be something else...I have used it on numerous roms with zero issues...maybe its your build...I dont know or really care now.......there was no flaming at all...also let me mention that I go back a long time with NO2chem and he knows I dont disrespect him....so your post is useless....if you dont find something informative....idc bro....I have a real life and dont tend to get into internet arguing....that is for losers...hence a little fella like you....good day son

Chris btw I have no issue with you bro....I think you have created some excellent stuff....just didn't feel it was needed to say my statement was asinine....but I do see that you have obviously looked into this deep....
[Epic 4G Android Development] MysteryEmotionz:
Camcorder works fine for me. Srf1.1 and twilight 1.1 with the updated bionic and dalvik from no2chem. I also got my own sqlite.so the fugu tweaks and the sdcard hack. And my theme on top of all that. I'm far from being stock but its still ec05.

You may develop a rom but I develop on android to. Alot of things can due to a bad flash since cwm is faulty. (its a dirty port and not official). The sd card is also known for crapping out and causing issues.

So please try again
[Epic 4G Android Development] chris41g:
it wasnt meant as a flame... maybe the word was poorly chosen. just a broad statement that it couldnt be the problem in my opinion was off base.. while none of my mod roms have the problem, i havent narrowed it to what it is, so his mod rom may still contain the element that causes it that my stock rom does.

no2chem is a brilliant dev, not just a rom dev but an actual coder. i back his work 110%. i didnt come here to **** on his thread or his work, just making a report. ive been using his stuff since my mogul and tp days. anyway ill report again when i have more info.
[Epic 4G Android Development] Anon9mouz:
So what's this stuff in this thread do I'm feeling like a noobie right now
[Epic 4G Android Development] p3dr0maz:
I noticed that the WPA2 - AES (PSK) Wiress Access Point at my work kept failing on the handshake and someone told me it could have been cause I just had flashed Bionic 1.1.

It's weird I installed Bionic 1.1 over 4.0.1 Bonsai and I felt like everything was ok on that ROM. I didn't notice WPA2 handshake issues until after I flashed it again after upgrading to Bonsai 4.1.1. Coincidence ? Maybe?

I'll try 1.1 vs 1.0 later on again when I have a chance on Bonsai 4.1.1.

Also would add that if the Access point was unsecured I didn't have any problems which makes sense since there shouldn't be any handshake there. Didn't test youtube or camcorder though, I will double check that next time I get a chance too. When you say camcorder are you saying that camera mode was fine? Just camcoder mode didnt work? That might be why i've never noticed. I rarely use camcorder mode, just camera mode.

So Chris41g,

Are you connected to an unsecured network? Or does the wifi access point you're testing have WPA? Does unsecured work fine?
[Epic 4G Android Development] p3dr0maz:
it's an optimized recompile of the libc module for android. Some internal methods were optimized that the system calls on routinely.
[Epic 4G Android Development] chris41g:
Unsecured networks work fine, wep networks are fine.. only wpa/wpa2...

Camera seemed to be fine, only the camcorder would forceclose after 2-3 seconds of recording and videos I recorded before 1.1 wouldn't play in video play after 1.1....

I only experienced the youtube "unable to play video" error intermittently so I'm not 100% sure its related, but quite a few people running my rom have experienced it and said that by reverting to the 1.0 bionic it fixes the issue...
[Epic 4G Android Development] WheresWaldo:
I can confirm this behavior on another ROM. Designgears added this to the Captivate Cognition ROM and it broke part of the WiFI. It seems that wireless-G is unaffected but wireless-N would not stay connected. Both were using WPA2 and the N router would ask for passphrase then connect, then imediately disconnect and forget the passphrase. Reboots and clearing WiFi data had no effect on this scenario. Going back to the default libc.so restored full functionality. I have reported this to Designgears in the Captivate forum.
[Epic 4G Android Development] bravomail:
Bionic C 1.0 rocks

I tested it on Samsung Captivate.

1.1 have disabled my video player, even in the games, and drains the battery.

Any chance of publishing sources?
[Epic 4G Android Development] Custodian:
I too noticed a drainage with 1.1. On 1.0 all is normal again. Running baked snack 2.3
[Epic 4G Android Development] Rrryan2:
1.0 seems to work fine on Samsung Captivate. Doesn't seem to make a very noticeable difference yet, but doesn't seem to break anything either.

More here in my post on Captivate forum:

http://xdaforums.com/showthread.php?p=14930420#post14930420
[Epic 4G Android Development] Custodian:
Man ill send you a epic 4g to dev on. What's up?!
[Epic 4G Android Development] Rrryan2:
Lol. Thanks all the same, but trust me I'm not the guy you want to be sending your phones to, really only know the bare basics about ROM development. My GPS project just grew out of some GPS work experience that had nothing to do with Linux etc.
[Epic 4G Android Development] latinmaxima:
Will this be benificial in gingerbread?
[Epic 4G Android Development] maxertx:
Thanks...checking it now
[Android Themes] brewcrewwheels:
i'm sure someone worked hard to make the original animated gif:

i just saved it as frames and made the desc.txt

enjoy
[Android Themes] sonnysekhon:
Thanks a lot!! My life is now complete. :D:D:D:D
[Android Themes] dopplerfx:
nice!!! good one for the stoners out there lmao
[Android Themes] castuis:
Nice!

Thank you goes great with my Futurama theme, Any chance you have the mp3 audio for it?

Found it, converted a youtube vid :P
[Android Themes] kevin2516:
i resized it for 240x320, is it alright if i can post it in my phone thread? will give credit of course.
[Android Themes] brewcrewwheels:
of course, go ahead. i really can't take too much credit after all, but feel free to share it.
[Android Themes] -somebody-:
i would love to have this on my lousy transform, anyone know where i can find this 320x480?
[Android Themes] TheSkepticalGuy:
Nice! this boot animation is for stoners...lol
[Android Themes] Dont Panic:
The display size for boot animations is in a text file in the zip. Download, unzip, open the text file and replace 480 854 with 320 480. Then re-zip. When you zip it, don't compress, Compression level should be Store.
[Android Themes] Hellafax:
OMG, this goes so well with my Desktop Hypnotoad screensaver :)
[Android Themes] slimdizzy:
Thanks for making this boo ..... ALL GLORY TO THE HYPNOTOAD!
[Android Themes] bryannh:
could someone post this as a flashable .zip? i'm too dumb to figure out how to place it
[Android Themes] VerizonKoolaid:
excellent

some glory to the hypnotoad
[Android Themes] bigshow4u:
for those who have boot sounds, here is the sound for the Hypnotoad in ogg format.
[Desire HD Q&A, Help & Troubleshooting] raidy:
i guys now i have 3 batteries of my DHD that i have been using, and i want to store 1 of them,

what is the appropriate percentage to store a battery that i`will not going to use temporarily?

100%full, 0%no charge, or like when u buy new battery normal comes with 60%

and i want to know as i already used all of them, if i store, it will not Die?
[Desire HD Q&A, Help & Troubleshooting] suchevent:
if you are going to store li-ion batteries, make sure that they are charged. doesn't matter how much, just ensure that you don't keep them in storage long enough that they fully discharge. having said that though, i wouldn't worry too much...li-ion batteries hold their charge for a good chunk of time in storage so you shouldn't have to worry about this as long as you give them a full charge.

you should avoid fully discharging li-ion batteries as much as possible.
[Desire HD Q&A, Help & Troubleshooting] raidy:
ok man thanks for the advice,

Best regards:)
[Desire HD Q&A, Help & Troubleshooting] AllEyezOnMe:
If this is the case then why do we need to caliberate the battery, doesnt that involve a full discharge? And wats ur views on battery caliberation
[Desire HD Q&A, Help & Troubleshooting] suchevent:
it's

recommended

that you avoid full discharges even when calibrating (drain no lower than 5%). obviously, it's your choice as to whether fully discharge or not. it's just a decision between an exact/accurate calibration vs. longer battery life.

for batteries that don't go through the full discharge cycle, it is recommended that a calibration be performed once a month. if you are fully discharging the battery once a month, you are significantly decreasing the overall life of the battery.

of course, i'm no expert and have no empirical data to prove any of this but you can find some test/study results online. and we all know that online info is always accurate :p