3
submitted 3 months ago by GustavoM@lemmy.world to c/raspberrypi@lemmy.ml

...at the expense of breaking some commands here and there. Why is that? How come env values can have this much impact in performance "for free"? This MUST have some caveats, right?

Thanks in advance.

top 3 comments
sorted by: hot top controversial new old
[-] 69420@lemmy.world 2 points 3 months ago

it will make pretty much everything faster...

This is just not true. Environment variables are only going to be used by programs that are looking for them specifically. Putting them in your .bashrc as you have done is going to make them only available in contexts where that file is sourced, e.g. interactive command line environments.

...at the expense of breaking some commands here and there...

You probably experience this because you used a single > to overwrite your .bashrc entirely with that single command. Anything that was in that file before is now gone. Using >> will append rather than overwrite.

That variable in particular is probably one used by mesa, a 3D graphics library. It's only going to be used by programs that use the mesa library. I don't know what it does exactly, but there will be documentation somewhere.

[-] CalcProgrammer1@lemmy.ml 1 points 3 months ago

Are you testing this on a Raspberry Pi? The PAN_ prefix seems to indicate this is a configuration for the Panfrost driver (which is the open source driver for ARM Mali GPUs) and the Raspberry Pi does not use an ARM Mali but rather a Broadcom VideoCore GPU, so I don't see how this would affect the Raspberry Pi.

[-] friend_of_satan@lemmy.world 1 points 3 months ago

It will also overwrite the entire contents of that file with that one line. Better use >>

this post was submitted on 08 Aug 2024
3 points (100.0% liked)

raspberrypi

3255 readers
1 users here now

Community about the single-board computers, micro-controllers and related projects.

https://www.raspberrypi.com/

Other RaspberryPi communities on Lemmy

founded 4 years ago
MODERATORS