forked from rDrama/rDrama
1
0
Fork 0
 
 
 
 
 
 
Go to file
Snakes da82ea81d8 Improve slur replacer performance.
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.
2022-06-07 21:16:58 -04:00
.github stole testing from mottechads 2022-05-17 23:09:36 +02:00
files Improve slur replacer performance. 2022-06-07 21:16:58 -04:00
.gitattributes mn 2022-05-05 01:09:46 +02:00
.gitignore fsd 2022-05-18 21:29:07 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2022-01-31 15:29:51 -08:00
Dockerfile big ass commit 2022-05-23 00:15:29 +02:00
LICENSE mn 2022-05-05 01:09:46 +02:00
dependabot.yml mn 2022-05-05 01:09:46 +02:00
docker-compose.yml cxz 2022-05-28 00:58:01 +02:00
env Enable flask command, add cron target. 2022-06-07 06:57:26 -04:00
imei.sh nxcv 2022-02-18 15:47:17 +02:00
pg_hba.conf mn 2022-05-05 01:09:46 +02:00
readme.md sdf 2022-05-27 23:34:01 +02:00
redis.conf mn 2022-05-05 01:09:46 +02:00
requirements.txt sfd 2022-05-26 22:32:06 +02:00
run_tests.py vdffsd 2022-05-23 00:45:04 +02:00
schema.sql sneed 2022-06-05 07:00:01 +00:00
seed-db.sql Move badge_defs SQL from seed-db to sneed. 2022-06-01 22:38:59 -04:00
site_settings.json sneed 2022-05-25 11:14:01 +00:00
snappy_PCM.txt fg 2022-05-07 07:28:51 +02:00
snappy_rDrama.txt sneed 2022-06-03 14:00:02 +00:00
supervisord.conf mn 2022-05-05 01:09:46 +02:00
ubuntu_setup cxz 2022-05-28 00:58:01 +02:00

readme.md

Build status

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.

Docker installation

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.