forked from rDrama/rDrama
This code runs https://rdrama.net and https://watchpeopledie.tv
h/t @official-techsupport for digging into the regex performance and coming up with one that greatly reduces backtracking. We see an approximately 2x speedup under typical loads, which proves to be a major overall savings in performance. Previously, censor_slurs was, second to ORM DB accesses, by far the most time-consuming function in the codebase under typical loads. It's still not ideal, but it is much better. Future options to improve this critical path further would be: 1) Precompute a slur-replaced HTML, rather than recomputing each pageload. Storage is cheap. 2) Tokenize the HTML and replace plaintext words using O(1) exact-match lookups to a dict. |
||
---|---|---|
.github | ||
files | ||
.gitattributes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
Dockerfile | ||
LICENSE | ||
dependabot.yml | ||
docker-compose.yml | ||
env | ||
imei.sh | ||
pg_hba.conf | ||
readme.md | ||
redis.conf | ||
requirements.txt | ||
run_tests.py | ||
schema.sql | ||
seed-db.sql | ||
site_settings.json | ||
snappy_PCM.txt | ||
snappy_rDrama.txt | ||
supervisord.conf | ||
ubuntu_setup |
readme.md
This code runs https://rdrama.net, https://pcmemes.net, https://cringetopia.org, and https://watchpeopledie.co
Installation (Windows/Linux/MacOS)
1- Install Docker on your machine.
2- Run the following commands in the terminal:
git clone https://github.com/Aevann1/rDrama/
cd rDrama
docker-compose up
3- That's it! Visit localhost
in your browser.
4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, please edit the variables in the env
file and then restart the docker container.