nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqafz9jadkpqzaedvclkth4vcm6q9fsvy6mfddq0ufwjpy4gptlwxqs0ryua (nprofile…ryua) people can be locked up for months (or years) before trial. There are huge delays in the courts. There are a number of safeguards. How well they work in practice, I don't know. The big one is the presumption of liberty. You need there to be good reason, normally flight risk, risk of harm to others or risk of reoffending, to lock someone up pre-trial. Even then, generally (murder and some repeat violent offensives are the exception) you would normally explore bail conditions before locking up someone pre-trial. The CPS has some helpful guidence if you are interested. https://www.cps.gov.uk/prosecution-guidance/bail#c8
Where the defence case is strong, the risk of flight, at least, is considered lower because the accused has good reason to stand trial and vice versa.
If you are in custody post charge, you have to be brought before the magistrates for a bail hearing at the next sitting (if I remember). If you are remanded in custody, there is a 56 day time limit for trial to start in the magistrates and half a year (normally) for crown court cases.
https://www.cps.gov.uk/prosecution-guidance/custody-time-limits
How well this works in practice, I know not. I think though that the big difference between here and the US is that over there, at least in many states, you have to put up a bail bond. That is not the case here. Black people in the US are disproportionately affected because the communities are disproportionately poorer. That, as you know, is a legacy of slavery, reconstruction, the New Deal, the War on Drugs, the sub-prime mortgage scandal and subsequent bail out and the ongoing deliberate exclusion of black people from access to wealth, cf school zoning rules and so on