POST https://kbin.spritesserver.nl/f/inbox

Query Metrics

1 Database Queries
1 Different statements
245.61 ms Query time
0 Invalid entities
0 Cache hits
0 Cache misses
0 Cache puts

Queries

Group similar statements

# Time Info
1 245.61 ms
INSERT INTO messenger_messages (body, headers, queue_name, created_at, available_at) VALUES(?, ?, ?, ?, ?)
Parameters:
[
  "{"payload":"{\"@context\":[\"https:\/\/join-lemmy.org\/context.json\",\"https:\/\/www.w3.org\/ns\/activitystreams\"],\"actor\":\"https:\/\/programming.dev\/c\/programmer_humor\",\"to\":[\"https:\/\/www.w3.org\/ns\/activitystreams#Public\"],\"object\":{\"id\":\"https:\/\/lemmy.world\/activities\/create\/e20c9a85-8e9e-4fa2-92f5-290983f6a5ef\",\"actor\":\"https:\/\/lemmy.world\/u\/RustyNova\",\"@context\":[\"https:\/\/join-lemmy.org\/context.json\",\"https:\/\/www.w3.org\/ns\/activitystreams\"],\"to\":[\"https:\/\/www.w3.org\/ns\/activitystreams#Public\"],\"object\":{\"type\":\"Note\",\"id\":\"https:\/\/lemmy.world\/comment\/14833838\",\"attributedTo\":\"https:\/\/lemmy.world\/u\/RustyNova\",\"to\":[\"https:\/\/www.w3.org\/ns\/activitystreams#Public\"],\"cc\":[\"https:\/\/programming.dev\/c\/programmer_humor\",\"https:\/\/programming.dev\/u\/wischi\"],\"content\":\"<blockquote>\\n<p>Good and bad use-cases for floats<\/p>\\n<\/blockquote>\\n<blockquote>\\n<p>Floats can be used everywhere where it doesn\u2019t matter that you can\u2019t store a 100% accurate base ten representations. For example positions and speeds in 3D games and animations, \u201canalog\u201d values like temperatures, speed of a vehicle, geo positions with longitude and latitude, a persons weight or heart pressure. In fact if you develop games there is no way around 32 bit floats because GPUs are f32 number crunching beasts. Modern 3D games wouldn\u2019t be possible without all those fast f32 calculations.<\/p>\\n<\/blockquote>\\n<blockquote>\\n<p>You shouldn\u2019t use binary floats if you need or expect accurate base ten calculations (addition, subtraction, multiplication, - note that divisions also introduce errors quickly in decimal types) and for dimensions that have a smallest unit that can\u2019t be broken down, for example like money. If you need to handle money just store the amount of cents as integers and only divide by 100 in your display function.<\/p>\\n<\/blockquote>\\n<p>This is exactly my point. Don\u2019t use floats when you need to get accurate stuff, but use it when you need a \u201cfeel\u201d for it<\/p>\\n\",\"inReplyTo\":\"https:\/\/programming.dev\/comment\/14719665\",\"mediaType\":\"text\/html\",\"source\":{\"content\":\"> Good and bad use-cases for floats\\n\\n> Floats can be used everywhere where it doesn\u2019t matter that you can\u2019t store a 100% accurate base ten representations. For example positions and speeds in 3D games and animations, \u201canalog\u201d values like temperatures, speed of a vehicle, geo positions with longitude and latitude, a persons weight or heart pressure. In fact if you develop games there is no way around 32 bit floats because GPUs are f32 number crunching beasts. Modern 3D games wouldn\u2019t be possible without all those fast f32 calculations.\\n\\n> You shouldn\u2019t use binary floats if you need or expect accurate base ten calculations (addition, subtraction, multiplication, - note that divisions also introduce errors quickly in decimal types) and for dimensions that have a smallest unit that can\u2019t be broken down, for example like money. If you need to handle money just store the amount of cents as integers and only divide by 100 in your display function.\\n\\nThis is exactly my point. Don't use floats when you need to get accurate stuff, but use it when you need a \\\"feel\\\" for it\",\"mediaType\":\"text\/markdown\"},\"published\":\"2025-02-02T05:32:56.649670Z\",\"tag\":[{\"href\":\"https:\/\/programming.dev\/u\/wischi\",\"name\":\"@wischi@programming.dev\",\"type\":\"Mention\"}],\"distinguished\":false,\"audience\":\"https:\/\/programming.dev\/c\/programmer_humor\"},\"cc\":[\"https:\/\/programming.dev\/c\/programmer_humor\",\"https:\/\/programming.dev\/u\/wischi\"],\"tag\":[{\"href\":\"https:\/\/programming.dev\/u\/wischi\",\"name\":\"@wischi@programming.dev\",\"type\":\"Mention\"}],\"type\":\"Create\",\"audience\":\"https:\/\/programming.dev\/c\/programmer_humor\"},\"cc\":[\"https:\/\/programming.dev\/c\/programmer_humor\/followers\"],\"type\":\"Announce\",\"id\":\"https:\/\/programming.dev\/activities\/announce\/create\/29cea4f0-9113-49a3-806c-a078e581d6c8\"}","request":{"host":"kbin.spritesserver.nl","method":"POST","uri":"\/f\/inbox","client_ip":"207.148.23.210"},"headers":{"content-type":["application\/activity+json"],"host":["kbin.spritesserver.nl"],"date":["Sun, 02 Feb 2025 05:33:49 GMT"],"digest":["SHA-256=0DiiLkcaRDAoKpS+ho\/9HCDJMLB\/xa9XsMOWLdXzOcY="],"signature":["keyId=\"https:\/\/programming.dev\/c\/programmer_humor#main-key\",algorithm=\"hs2019\",headers=\"(request-target) content-type date digest host\",signature=\"oB7OQLjkAN5DJsFkHpsStkPO8moLgLcsdzZMluuA9kzTN0SIdlA008BJjxSS5I2hAxM\/C0XGBk0xGGp6PoUmbPbWbSswj6EVD1CxJxPAdV\/fKHJ9J3v7TfgvBC5VEP7lLr\/3QHj1YZT9gs\/NcHaAOzc+M64mIyJxaU3kv3e2aEuH2VuXn9rBC50k8plDDQGNg\/Sg9pf9FY6bxXVfT\/oq6ryyO8RUxOedRk7IfIq0NfHqu8p84LEZgFc10w9w4wPwvyKTUP8vL0OVfGZ89dYOYl3YmBDHQv6PAeq5hX78bzAlFZMgv7mYYOjWsDPU4kVj\/7vkFDNhfdk9Ukhfml9kRA==\""],"accept":["*\/*"],"user-agent":["Lemmy\/0.19.5; +https:\/\/programming.dev"],"accept-encoding":["gzip"],"content-length":["3845"],"x-php-ob-level":["1"]}}"
  "{"type":"App\\Message\\ActivityPub\\Inbox\\ActivityMessage","X-Message-Stamp-Symfony\\Component\\Messenger\\Stamp\\BusNameStamp":"[{\"busName\":\"messenger.bus.default\"}]","Content-Type":"application\/json"}"
  "default"
  "2025-02-02 05:33:49"
  "2025-02-02 05:33:49"
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

0 Hits
0 Misses
0 Puts

Entities Mapping

No loaded entities.