Switch to smaller profiling data - seems to give better results, anyways

This commit is contained in:
Alcaro
2018-12-30 19:15:29 +01:00
parent 8d2f3630e9
commit 78e72f51f3
4 changed files with 16 additions and 15 deletions

View File

@@ -490,7 +490,7 @@ struct bpsinfo bps_get_info(file* patch, bool changefrac)
#if 0
#ifdef BPS_DEBUG
#warning Disable this in release versions.
#include <stdio.h>
@@ -702,10 +702,11 @@ static struct mem ReadWholeFile(const char * filename)
struct mem ret = { (unsigned char*)data, len };
return ret;
}
int main(int argc,char**argv)
{
if (argc==1) puts("bad arguments");
if (argc==2) bps_dump(ReadWholeFile(argv[1]));
if (argc==3) bps_compare(ReadWholeFile(argv[1]),ReadWholeFile(argv[2]));
if (argc==1) puts("bad arguments");
if (argc==2) bps_dump(ReadWholeFile(argv[1]));
if (argc==3) bps_compare(ReadWholeFile(argv[1]),ReadWholeFile(argv[2]));
}
#endif