My favorite optimization is Java substring which returns “slices” which reuse the source string’s char[]. If you have a big string in memory you can pull as many substrings as needed without ever copying a char. Each substring has the storage overhead of a char* to the shared buff, offset, and length.
englebart
Posts
-
Ok, so this one goes out to C... -
Well, the "free electricity hour" has come and gone.I have a friend that does that based on a free night time electricity plan. Banks into a few battery packs at night and runs off the packs during the day. He estimated a three year break even on the packs, then he is into the gravy! (as long as he can find a similar power plan)
-
Well it's been a good past 24 hours“enough” The difference between engineering and design!
-
Scientific Study, (N=1): USB Ports last 18 to 24 monthsI have a super cheap 2 device KVM for keyboard, mouse, and HDMI. The first one lasted about 15 months. I think it may have over heated since I keep my computer on 24/7. I bought the same model again and drilled a bunch of holes in the top and bottom and put some feet on it for an air gap. I am hoping to get a little more life out of this one. I calculate the cost to about $2/month. Worth the convenience.
-
Ahh, the IT industry...I am convinced that all NIST approved cryptography standards are all hackable by NSA in minutes.
-
Gosh I really painted myself into a cornerJust throwing this out there… so the high level apis don’t show the lower type specs, but all take a generic callback pointer. The callback must match the lower type requirements? Compiler won’t be able to help here, but if your bitmaps show up incorrectly, they should catch that pretty fast in testing.
-
Well, the "free electricity hour" has come and gone.and you were using the heaters outside while sipping your tea on the patio?
-
Development oddityNow, you need to create the audit committee to design the process and enforce the paperwork to prove that it is still working. (at least quarterly or whenever you change the batteries in the smoke detectors) Be sure to file in triplicate.
-
Embedded and legacy rabbit holesI could see the vertical format working if they are trying to race the raster from the CRT. Remember those? spit the top row of bits across one line, advance bit mask one position, repeat. win 1.0 was probably running on slow CPUs when that format was developed. I started with win 2.1 at 12Mhz and EGA was ground breaking. No pre-fetch cache, etc
-
I'm a bit overwhelmedI was thinking along similar lines, but I know you work on various hardware. I also know that you often don’t need very much help when you are venting! My guess: you are working on an e-paper reader where you will need to render whatever font comes with the e book.
-
Well, that's different.Sort the laundry now and load the washing machine, prepare the vacuum cleaner, prep your welding projects, build a vacuum enclosed fly wheel, turn your freezer to max cold, put all of warm beer in the fridge, etc. It is going to be a busy hour! Don’t forget to skew the data and power off your main the day before!
-
(International) Terminology QuestionRed line/red curb here( left pond ) indicates fire lane/fire truck lane. Tow away zone. Line means don’t cross. White line/dash is a separator for traffic moving the same direction. Yellow line/dash is a separator for traffic moving the opposite direction.
-
GitHub Copilot...I am thinking it could save some typing by using recursion and adding or subtracting 2 on each call! Start posting multiple instances of cr@p like that on public repos and see how long it takes to suggest that…
-
Do you trust the "Cloud"?Also reminds me of someone trying to remove some copyrighted material from a github repo… just go back in the history!
-
Do you trust the "Cloud"?“Where to look…” The Internet Way Back Machine?
-
If apple made carsYes. Instead of a real knob, there would be a picture of a knob on a touch screen that behaves nothing like a real knob!
-
Read This, Not ThatI had expected you would recommend “Cat Herding: Keeping Your Developers on Task”. 😊 Note: I just made up the title, but it might actually exist.
-
Could a Chimpanzee Ride a Motorcycle?If he has a cell phone with Google Maps, he will be fine. unless he starts texting!
-
Roll your own...The other idea popping in my head… What website did this director launch before coming to your company? Do they take credit cards on the site? Bobby Tables wants a shopping spree!
-
Roll your own...[Authentication - OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/cheatsheets/Authentication\_Cheat\_Sheet.html) If you do roll your own, this offers some high level considerations…