Skip to content

Instantly share code, notes, and snippets.

View osa1's full-sized avatar

Ömer Sinan Ağacan osa1

View GitHub Profile
find . -iname "*.o" | xargs nm -A | grep -E "*cvA3_info*"
[section ""data" . $wsum_closure" {
$wsum_closure:
const $wsum_info;
},
$wsum_entry() // [R2]
{ info_tbl: [(cMo,
label: block_cMo_info
rep:StackRep []),
(cMv,
label: $wsum_info
// When highlighting nicks in messages, we search words in the `nicks` set. To
// be able to highlight substrings, we need offsets of chars, but
// `SplitWhitespace` doesn't provide that. Also, our separators are actually a
// set of characters, like {'<', '(', etc} instead of a fixed character or
// whitespace.
struct WordIdxs<'s> {
/// The whole thing, not a shrinking slice.
str : &'s str,
pub struct TrieNode {
vec : Vec<(char, Box<TrieNode>)>,
word : bool,
}
impl TrieNode {
pub fn new() -> TrieNode {
TrieNode {
vec: vec![],
word: false,
use std::ops::Drop;
use std::os::unix::io::{AsRawFd, RawFd};
use std::ptr;
use std::time::Duration;
use libc;
extern {
/// int timerfd_create(int clockid, int flags)
fn timerfd_create(clockid : libc::c_int, flags : libc::c_int) -> libc::c_int;
-- This time generated using -O2 optimized libs + GHC.
================================Data.Digest.Pure.SHA=================================
CodeGen 98003.87 ms 45930.07 mb 86.7% of total time
Simplifier 7897.97 ms 4759.07 mb 7.0% of total time
Demand analysis 4648.55 ms 1654.48 mb 4.1% of total time
Renamer/typechecker 765.77 ms 337.82 mb 0.7% of total time
Float inwards 690.78 ms 734.53 mb 0.6% of total time
-- Timings of hxt, haskell-src-exts, lens, and their dependencies. At the bottom
-- is the cumulative numbers for individual passes.
--
-- Modules and passes in modules are sorted from longest to shortest.
==========================Data.Text.Lazy.Builder.RealFloat===========================
CodeGen 56563.82 ms 76186.61 mb 60.0% of total time
Simplifier 28763.27 ms 30601.96 mb 30.5% of total time
CorePrep 2602.90 ms 3254.26 mb 2.8% of total time
=============================Data.ByteString.Lazy.Lens==============================
Renamer/typechecker 91.88 ms 154.265 mb 23.0368067395% of total time
CodeGen1 62.73 ms 82.121 mb 15.7281115234% of total time
CodeGen 58.56 ms 76.325 mb 14.6825794805% of total time
Simplifier1 43.27 ms 59.186 mb 10.8489619898% of total time
Simplifier5 22.48 ms 30.133 mb 5.63634540166% of total time
Desugar 20.94 ms 31.829 mb 5.2502256544% of total time
Simplifier6 12.11 ms 13.585 mb 3.03630528533% of total time
Simplifier 10.12 ms 10.663 mb 2.53735833918% of total time
This file has been truncated, but you can view the full file.
=========================Graphics.GL.Ext.ARB.TextureStorage=========================
Renamer/typechecker 4.0 ms 4.658 mb 57.1428571429% of total time
CodeGen 1.0 ms 1.572 mb 14.2857142857% of total time
Called arity analysis 1.0 ms 0.056 mb 14.2857142857% of total time
Simplifier 1.0 ms 0.173 mb 14.2857142857% of total time
Float inwards1 0.0 ms 0.057 mb 0.0% of total time
Worker Wrapper binds 0.0 ms 0.051 mb 0.0% of total time
Demand analysis 0.0 ms 0.088 mb 0.0% of total time
Float inwards 0.0 ms 0.056 mb 0.0% of total time
==========================Data.Text.Internal.Encoding.Utf8==========================
CodeGen 33.0 ms 49.639 mb 41.7721518987% of total time
Renamer/typechecker 12.0 ms 12.15 mb 15.1898734177% of total time
Simplifier5 6.0 ms 11.025 mb 7.59493670886% of total time
Simplifier 5.0 ms 8.122 mb 6.32911392405% of total time
Parser 5.0 ms 6.088 mb 6.32911392405% of total time
Simplifier1 3.0 ms 7.065 mb 3.79746835443% of total time
Desugar 2.0 ms 3.315 mb 2.53164556962% of total time
Simplifier6 2.0 ms 2.962 mb 2.53164556962% of total time