System: Ryzen 7 5900X, 64GB ram, linux 5.15, Nats server 2.9.10 in docker All results tested in release mode, rustc 1.66.0
total time spent (micro secs): 176134
avg (micro secs): 1761
#!/usr/sbin/nft -f | |
# see https://unix.stackexchange.com/questions/740061/how-do-you-duplicate-all-udp-traffic-on-a-port-range-using-nftables/ | |
# sends all duplicated packets to 10.0.0.1 | |
# run this before applying this file | |
# sudo ip addr add 10.0.0.1/24 dev lo | |
# clean up with | |
# sudo ip addr delete 10.0.0.1/24 dev lo |
/* results on 24 threads, Linux, Ryzen 5900X, 64GB RAM, rust 1.66 release mode | |
pubkey generation cost 13.703447ms | |
filling up 8 channels cost 1.299627336s | |
insert on thread_5 cost 204.928433ms | |
insert on thread_2 cost 202.868308ms | |
insert on thread_4 cost 219.480851ms | |
insert on thread_0 cost 213.074428ms | |
insert on thread_6 cost 213.296481ms | |
insert on thread_3 cost 234.825416ms | |
insert on thread_1 cost 218.522672ms |
/* results on 24 threads, Linux, Ryzen 5900X, 64GB RAM, rust 1.66 release mode | |
mutex st: 3.504602ms | |
mutex mt 24 threads: 966.566131ms | |
rwlock st: 4.115984ms | |
rwlock mt 24 threads: 1.639819526s | |
parking_lot st: 4.255349ms | |
parking_lot mt 24 threads: 1.336455132s | |
try channel st: 18.446771ms | |
try channel mt 24 threads: 3.152402156s | |
new channel st: 45.410769ms |
[{ | |
"address": "16v7w7fKBcw1aJiHae6Ma9rgUQG6MQvgNa", | |
"balance": 2551004338039 | |
}, | |
{ | |
"address": "16v7w7fKBcw1aJiHae6Ma9rgUQG6MQvgNa", | |
"balance": "a" | |
}] |
Employee at Musicly first Launched tiktok in US + EU with 10-15 person team
Wants to connect with the influence market Idea: livestreaming app. There are struggles for ppl with ~10k follower count. No contact from brand Example: Korean skin care. There are influencers who have small audiences with very high conversion rates, deep knowledge Looking to pay with stickers, coins, targeting the beauty vertical
FROM ubuntu:xenial | |
WORKDIR /root | |
EXPOSE 1084 1055 2325 | |
#Ports in use: | |
#panel 1084 | |
#flexlm 1055 | |
#interconnect 2325 | |
RUN apt update && apt install -y wget lsb-core libfreetype6 libxext6 libsm6 libxrender1 libfontconfig1 && rm -rf /var/lib/apt/lists/*; |
import React, {ErrorInfo} from 'react'; | |
export default class ErrorBoundary extends React.Component<{}, { hasError: boolean }> { | |
constructor(props: {}) { | |
super(props); | |
this.state = {hasError: false}; | |
} | |
static getDerivedStateFromError(error: Error) { // Update state so the next render will show the fallback UI. | |
return {hasError: true}; |
#!/bin/sh | |
# | |
# Copyright (c) 2007 Javier Fernandez-Sanguino <[email protected]> | |
# | |
# This is free software; you may redistribute it and/or modify | |
# it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2, | |
# or (at your option) any later version. | |
# | |
# This is distributed in the hope that it will be useful, but |